From 29cd8799fa36569b44c35833feaac4451c6914db Mon Sep 17 00:00:00 2001 From: Martin Mares <mj@ucw.cz> Date: Wed, 14 Jul 2021 00:15:39 +0200 Subject: [PATCH] mo.users.set_password nezapisuje do DB logu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Všichni volající už logují sami o sobě. --- mo/users.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mo/users.py b/mo/users.py index 53deba0c..44e68d48 100644 --- a/mo/users.py +++ b/mo/users.py @@ -179,12 +179,6 @@ def set_password(user: db.User, passwd: str): user.reset_at = None user.last_login_at = datetime.datetime.now() - mo.util.log( - type=db.LogType.user, - what=user.user_id, - details={"action": "set-passwd"}, - ) - def check_password(user: db.User, passwd: str): return user.password_hash is not None and \ -- GitLab