summaryrefslogtreecommitdiff
path: root/httemplate/misc
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-11-13 13:06:00 -0800
committerIvan Kohler <ivan@freeside.biz>2015-11-13 13:06:00 -0800
commit2d3ab45cd0b35cb929198e2ad36a1ec9a3b4d93d (patch)
tree97bc37e32960f89b299f4b7efa49694e06e95243 /httemplate/misc
parent156ce177ef4fb53cfcf688b6127a3c4cff9fb83d (diff)
parentfb5becb1a877994b897e737e983fae2c8da6a5ac (diff)
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'httemplate/misc')
-rw-r--r--httemplate/misc/process/change-password.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/httemplate/misc/process/change-password.html b/httemplate/misc/process/change-password.html
index 7cab9c4e3..d58ce544d 100644
--- a/httemplate/misc/process/change-password.html
+++ b/httemplate/misc/process/change-password.html
@@ -11,7 +11,9 @@ die "access denied" unless (
( $curuser->access_right('Edit password') and
! $part_svc->restrict_edit_password )
);
-my $error = $svc_acct->set_password($cgi->param('password'))
+my $newpass = $cgi->param('password');
+my $error = $svc_acct->is_password_allowed($newpass)
+ || $svc_acct->set_password($newpass)
|| $svc_acct->replace;
# annoyingly specific to view/svc_acct.cgi, for now...