Fix #4252: do not reset the user photo setting when edit the user.
This commit is contained in:
parent
aa91e4cdee
commit
434cd133df
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user