Fix User::_from_dict() not setting internal name and email.

This commit is contained in:
Relintai 2025-05-15 10:56:11 +02:00
parent 7282cd782d
commit 86a06be2a3

View File

@ -253,8 +253,9 @@ void User::_from_dict(const Dictionary &dict) {
// This is the only way to properly preserve atomicity. // This is the only way to properly preserve atomicity.
_user_id = dict["user_id"]; _user_id = dict["user_id"];
_user_name = dict["user_name"]; // Use setters here these set other cached state too
_email = dict["email"]; set_user_name(dict["user_name"]);
set_email(dict["email"]);
_rank = dict["rank"]; _rank = dict["rank"];
_pre_salt = dict["pre_salt"]; _pre_salt = dict["pre_salt"];
_post_salt = dict["post_salt"]; _post_salt = dict["post_salt"];