Show More
@@ -958,8 +958,10 b' class PartialRenderer(object):' | |||||
958 |
|
958 | |||
959 |
|
959 | |||
960 | def password_changed(auth_user, session): |
|
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 | return False |
|
963 | return False | |
|
964 | ||||
963 | password_hash = md5(auth_user.password) if auth_user.password else None |
|
965 | password_hash = md5(auth_user.password) if auth_user.password else None | |
964 | rhodecode_user = session.get('rhodecode_user', {}) |
|
966 | rhodecode_user = session.get('rhodecode_user', {}) | |
965 | session_password_hash = rhodecode_user.get('password', '') |
|
967 | session_password_hash = rhodecode_user.get('password', '') |
General Comments 0
You need to be logged in to leave comments.
Login now