diff options
author | Ivan Kohler <ivan@freeside.biz> | 2018-08-02 13:11:48 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2018-08-02 13:11:48 -0700 |
commit | 80d6c0b965e62795fa7990e82082be59c8a03087 (patch) | |
tree | 1ccdc66a1780980ec7932c2129861c810d6af90e /httemplate/edit/process | |
parent | 0566e27675c0150f00795587c8bb1123c6a3871b (diff) |
fix editing employee pw, RT#32456
Diffstat (limited to 'httemplate/edit/process')
-rw-r--r-- | httemplate/edit/process/access_user.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/httemplate/edit/process/access_user.html b/httemplate/edit/process/access_user.html index d589c620e..c27262017 100644 --- a/httemplate/edit/process/access_user.html +++ b/httemplate/edit/process/access_user.html @@ -44,8 +44,11 @@ sub post_new_object_callback { return '' unless length($cgi->param('_password')); my $password = scalar($cgi->param('_password')); - $access_user->is_password_allowed($password) - || $access_user->change_password_fields($password); + my $error = $access_user->is_password_allowed($password); + return $error if $error; + + $access_user->change_password_fields($password); + ''; } sub noerror_callback { |