From 1c0ed6b7d28728713e3c9a377b8eadfa05afda88 Mon Sep 17 00:00:00 2001 From: neptune Date: Fri, 21 Jul 2023 02:10:24 -0400 Subject: Arreglado bug con rehash de contraseña --- cgi/manage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'])) -- cgit v1.2.1-18-gbd029