From 689765c587cacac7474757a6f3d44e18b56d2851 Mon Sep 17 00:00:00 2001 From: Chris Church Date: Sun, 30 Jun 2013 13:00:16 -0400 Subject: [PATCH] Fix to only update the user's password if a non-empty password string is provided. --- awx/main/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/views.py b/awx/main/views.py index f50179bcb9..bc1e409cd5 100644 --- a/awx/main/views.py +++ b/awx/main/views.py @@ -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')