user settings fixes

This commit is contained in:
2023-11-11 08:57:29 +01:00
parent e65e19e293
commit a45c314bab
2 changed files with 8 additions and 12 deletions

View File

@@ -69,6 +69,8 @@ class DatabaseHelper:
try:
self.cursor.execute("UPDATE `users` SET `password` = ? WHERE (`private_key` = ? AND `password` = ?)", (password, user_privatekey, old_password,))
self.commit()
if self.cursor.rowcount < 1:
return False
return True