diff options
author | Christopher Burger <burgerc@freeside.biz> | 2017-09-12 12:08:41 -0400 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2017-09-12 12:08:41 -0400 |
commit | 998b32d356338772484814a477d9efb159206b8d (patch) | |
tree | f93eebad83be0b899d8c37336d25b9eac80bf0b8 /httemplate/misc/process/change-password.html | |
parent | 23f29deffa1fc6bc1a7b904c80f71db2d76dc26e (diff) |
RT# 77504 - Fixed error display issue, and javascript to prevent error.
Diffstat (limited to 'httemplate/misc/process/change-password.html')
-rw-r--r-- | httemplate/misc/process/change-password.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/httemplate/misc/process/change-password.html b/httemplate/misc/process/change-password.html index be83786cd..a3e060168 100644 --- a/httemplate/misc/process/change-password.html +++ b/httemplate/misc/process/change-password.html @@ -7,6 +7,7 @@ % $cgi->param('contactnum', $contactnum); % $cgi->param("changepw${contactnum}_error", $error); % } +% $cgi->param('error', $error); % } else { % if ($svcnum) { $cgi->query_string($svcnum); } % elsif ($contactnum) { $cgi->query_string($contactnum); } @@ -52,7 +53,7 @@ if ($svcnum) { ! $part_svc->restrict_edit_password ) ); - my $error = $svc_acct->is_password_allowed($newpass) + $error = $svc_acct->is_password_allowed($newpass) || $svc_acct->set_password($newpass) || $svc_acct->replace; @@ -63,7 +64,7 @@ elsif ($contactnum) { my $contact = qsearchs('contact', { 'contactnum' => $contactnum } ) or return { 'error' => "Contact not found" . $contactnum }; - my $error = $contact->is_password_allowed($newpass) + $error = $contact->is_password_allowed($newpass) || $contact->change_password($newpass); # annoyingly specific to view/svc_acct.cgi, for now... |