Merge pull request #4253 from zyhfish/task/fix-issue-4252

Fix #4252: do not reset the user photo setting when edit the user.
This commit is contained in:
Shaun Walker 2024-05-13 08:51:33 -04:00 committed by GitHub
commit a54e6e7c4b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -226,11 +226,6 @@
user.Password = _password;
user.Email = email;
user.DisplayName = string.IsNullOrWhiteSpace(displayname) ? username : displayname;
user.PhotoFileId = null;
if (user.PhotoFileId == -1)
{
user.PhotoFileId = null;
}
user.IsDeleted = (isdeleted == null ? true : Boolean.Parse(isdeleted));