summaryrefslogtreecommitdiff
path: root/httemplate/misc/process
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2017-09-12 12:08:41 -0400
committerChristopher Burger <burgerc@freeside.biz>2017-09-13 10:11:30 -0400
commit0a91d21fcf8ebeb12cd71230d79153c1fa0d82a3 (patch)
tree1d3cd3857824e8a1abe7453762facce6ae51f8c4 /httemplate/misc/process
parenta84d14e36ad747dcc15cd5a4706e91c7cabb0afb (diff)
RT# 77504 - Fixed error display issue, and javascript to prevent error.
Diffstat (limited to 'httemplate/misc/process')
-rw-r--r--httemplate/misc/process/change-password.html5
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...