Fix User::_from_dict() using wrong dictionary keys.

This commit is contained in:
Relintai 2025-05-03 20:53:47 +02:00
parent 0927580e78
commit 3894d36ad3

View File

@ -228,16 +228,16 @@ Dictionary User::_to_dict() {
return dict; return dict;
} }
void User::_from_dict(const Dictionary &dict) { void User::_from_dict(const Dictionary &dict) {
_user_id = dict["user_id "]; _user_id = dict["user_id"];
_user_name = dict["user_name "]; _user_name = dict["user_name"];
_email = dict["email "]; _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"];
_password_hash = dict["password_hash "]; _password_hash = dict["password_hash"];
_banned = dict["banned "]; _banned = dict["banned"];
_password_reset_token = dict["password_reset_token "]; _password_reset_token = dict["password_reset_token"];
_locked = dict["locked "]; _locked = dict["locked"];
Array marr = dict["modules"]; Array marr = dict["modules"];