This commit is contained in:
2023-08-24 21:46:06 +08:00
parent eb7c24c197
commit 57c26c96d4
2 changed files with 13 additions and 12 deletions
@@ -281,6 +281,7 @@ namespace WebAPI.Controllers
var getU = db.Person_Persons.FirstOrDefault(x => x.PersonId == userId && x.Password == oldp);
if (getU != null)
{
getU.RawPassword=pwd;
getU.Password = Funs.EncryptionPassword(pwd);
db.SubmitChanges();
}