mirror of
https://github.com/ansible/awx.git
synced 2026-01-21 06:28:01 -03:30
Fix to only update the user's password if a non-empty password string is provided.
This commit is contained in:
parent
adcc402910
commit
689765c587
@ -629,7 +629,7 @@ class UserDetail(BaseDetail):
|
||||
if changed:
|
||||
raise PermissionDenied('Cannot change %s' % ', '.join(changed.keys()))
|
||||
|
||||
if 'password' in request.DATA:
|
||||
if 'password' in request.DATA and request.DATA['password']:
|
||||
obj.set_password(request.DATA['password'])
|
||||
obj.save()
|
||||
request.DATA.pop('password')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user