##// END OF EJS Templates
auth: Fix password_changed function, fixes #4043....
Martin Bornhold -
r482:930b0a4d default
parent child Browse files
Show More
@@ -958,8 +958,10 b' class PartialRenderer(object):'
958 958
959 959
960 960 def password_changed(auth_user, session):
961 if auth_user.username == User.DEFAULT_USER:
961 # Never report password change in case of default user or anonymous user.
962 if auth_user.username == User.DEFAULT_USER or auth_user.user_id is None:
962 963 return False
964
963 965 password_hash = md5(auth_user.password) if auth_user.password else None
964 966 rhodecode_user = session.get('rhodecode_user', {})
965 967 session_password_hash = rhodecode_user.get('password', '')
General Comments 0
You need to be logged in to leave comments. Login now