Fix #4252: do not reset the user photo setting when edit the user.

This commit is contained in:
Ben 2024-05-13 16:08:43 +08:00
parent aa91e4cdee
commit 434cd133df

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));