This commit is contained in:
2020-06-21 18:48:25 +00:00
parent 21b70693c1
commit 4edbecd544
5 changed files with 5 additions and 2 deletions

View File

@@ -200,7 +200,7 @@ namespace AyaNova.Biz
//NOTE: It's valid to call this without intending to change login or password (null values)
//Is the user updating the password?
if (!string.IsNullOrWhiteSpace(putObject.Password) && SnapshotOfOriginalDBObj.Password != putObject.Password)
if (!string.IsNullOrWhiteSpace(putObject.Password))
{
//YES password is being updated:
dbObject.Password = Hasher.hash(SnapshotOfOriginalDBObj.Salt, putObject.Password);