From 3894d36ad32f12a1f451b0ec4bed63d24b999c9e Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 3 May 2025 20:53:47 +0200 Subject: [PATCH] Fix User::_from_dict() using wrong dictionary keys. --- modules/users/users/user.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/modules/users/users/user.cpp b/modules/users/users/user.cpp index fdbadad17..d841caca5 100644 --- a/modules/users/users/user.cpp +++ b/modules/users/users/user.cpp @@ -228,16 +228,16 @@ Dictionary User::_to_dict() { return dict; } void User::_from_dict(const Dictionary &dict) { - _user_id = dict["user_id "]; - _user_name = dict["user_name "]; - _email = dict["email "]; - _rank = dict["rank "]; - _pre_salt = dict["pre_salt "]; - _post_salt = dict["post_salt "]; - _password_hash = dict["password_hash "]; - _banned = dict["banned "]; - _password_reset_token = dict["password_reset_token "]; - _locked = dict["locked "]; + _user_id = dict["user_id"]; + _user_name = dict["user_name"]; + _email = dict["email"]; + _rank = dict["rank"]; + _pre_salt = dict["pre_salt"]; + _post_salt = dict["post_salt"]; + _password_hash = dict["password_hash"]; + _banned = dict["banned"]; + _password_reset_token = dict["password_reset_token"]; + _locked = dict["locked"]; Array marr = dict["modules"];