[fix] Unknown variable password in user_update

This commit is contained in:
ljf (zamentur) 2018-11-21 18:37:08 +01:00
parent b3c5f44518
commit 5a22b400eb

View file

@ -313,7 +313,7 @@ def user_update(operation_logger, auth, username, firstname=None, lastname=None,
if change_password:
# Ensure sufficiently complex password
assert_password_is_strong_enough("user", password)
assert_password_is_strong_enough("user", change_password)
new_attr_dict['userPassword'] = _hash_user_password(change_password)