[freeside-commits] branch FREESIDE_4_BRANCH updated. 21dc9c6de6a29861e41d6980da9d0860065bc793
Ivan Kohler
ivan at freeside.biz
Thu Aug 2 13:11:52 PDT 2018
The branch, FREESIDE_4_BRANCH has been updated
via 21dc9c6de6a29861e41d6980da9d0860065bc793 (commit)
from f6b60693ce7b19762d18d940e647a99bd4b4126a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 21dc9c6de6a29861e41d6980da9d0860065bc793
Author: Ivan Kohler <ivan at freeside.biz>
Date: Thu Aug 2 13:11:51 2018 -0700
fix editing employee pw, RT#32456
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 {
-----------------------------------------------------------------------
Summary of changes:
httemplate/edit/process/access_user.html | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list