diff options
| author | Mark Wells <mark@freeside.biz> | 2015-11-12 16:49:39 -0800 |
|---|---|---|
| committer | Mark Wells <mark@freeside.biz> | 2015-11-13 13:00:42 -0500 |
| commit | d3f33fa4dbabb61cd94dac9f4f63cd8f249313da (patch) | |
| tree | f9559ddf824ab90fcc68e1854e1219caeef5e907 /httemplate/misc/process | |
| parent | 75a3ac488dc908290e75edd09471e01dba2199cb (diff) | |
limit password reuse, core and svc_acct, #29354
Diffstat (limited to 'httemplate/misc/process')
| -rw-r--r-- | httemplate/misc/process/change-password.html | 4 |
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... |
