summaryrefslogtreecommitdiff
path: root/httemplate/misc/process
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-11-17 17:00:06 -0800
committerIvan Kohler <ivan@freeside.biz>2015-11-17 17:00:06 -0800
commitf32ac83068c6211f829f1688a1a9cdec71bc6ec7 (patch)
treea6b6866f50a90fc7716861b4884ec4ffeb5ce535 /httemplate/misc/process
parent2c112f32561f23f9c538ace00db46659ce16da32 (diff)
parentc0886229d19cfa798580fbeb342826fd11ceeeb0 (diff)
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'httemplate/misc/process')
-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...