From 86a06be2a3644ff60ebb97a83d88b873a38ea926 Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 15 May 2025 10:56:11 +0200 Subject: [PATCH] Fix User::_from_dict() not setting internal name and email. --- modules/users/users/user.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/users/users/user.cpp b/modules/users/users/user.cpp index b2dee5ff8..5d17636cf 100644 --- a/modules/users/users/user.cpp +++ b/modules/users/users/user.cpp @@ -253,8 +253,9 @@ void User::_from_dict(const Dictionary &dict) { // This is the only way to properly preserve atomicity. _user_id = dict["user_id"]; - _user_name = dict["user_name"]; - _email = dict["email"]; + // Use setters here these set other cached state too + set_user_name(dict["user_name"]); + set_email(dict["email"]); _rank = dict["rank"]; _pre_salt = dict["pre_salt"]; _post_salt = dict["post_salt"];