Fixed reset of master password

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

No files matched your search

+1 -1
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)