aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar neptune 2023-07-21 02:10:24 -0400
committerLibravatar neptune 2023-07-21 02:10:24 -0400
commit1c0ed6b7d28728713e3c9a377b8eadfa05afda88 (patch)
tree22bf3a472b3750488a6cc14bd4d01413131aa3fa
parent507b603e0f73c0fad0d31da21ed7947240bbc9af (diff)
downloadweabot-1c0ed6b7d28728713e3c9a377b8eadfa05afda88.tar.gz
weabot-1c0ed6b7d28728713e3c9a377b8eadfa05afda88.tar.xz
weabot-1c0ed6b7d28728713e3c9a377b8eadfa05afda88.zip
Arreglado bug con rehash de contraseña
-rw-r--r--cgi/manage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgi/manage.py b/cgi/manage.py
index 81a0bd4..5818b64 100644
--- a/cgi/manage.py
+++ b/cgi/manage.py
@@ -2334,7 +2334,7 @@ def verifyPasswd(username, passwd):
raise UserError("Hash obsoleto o inválido. Por favor contacte al administrador.")
if ph.check_needs_rehash(staff_account['password']):
- param_new_hash = ph.hash(staff_acount['password'])
+ param_new_hash = ph.hash(passwd)
UpdateDb("UPDATE staff SET password = '%s' WHERE id = %s" %
(param_new_hash, staff_account['id']))