Fixed reset of master password

This commit is contained in:
StNicolay
2022-10-14 19:53:05 +03:00
parent 39e86793a6
commit b1017082a9
2 changed files with 13 additions and 3 deletions

View File

@ -10,7 +10,7 @@ def change_master_pass(
statement = sqlmodel.update(
models.MasterPass,
models.MasterPass.user_id == user_id,
sqlmodel.values(salt=salt, passwd=passwd),
{"salt": salt, "passwd": passwd},
)
with sqlmodel.Session(engine) as session:
session.exec(statement)