diff options
author | Ivan Kohler <ivan@freeside.biz> | 2017-06-29 13:39:47 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2017-06-29 13:39:47 -0700 |
commit | 9d6c810bf70d12221ff3b7916b717a6f0c924a1c (patch) | |
tree | a1c925e1bd90f34f9061875281d0c75c7bf25f32 /httemplate/misc/process | |
parent | 7565d61a5a62c57f34f4e3efd59d2e3211229181 (diff) | |
parent | e773f2d834f6757e7a0430184d9db6939e0b632d (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.html | 54 |
1 files changed, 32 insertions, 22 deletions
diff --git a/httemplate/misc/process/change-password.html b/httemplate/misc/process/change-password.html index 250e8320b..be83786cd 100644 --- a/httemplate/misc/process/change-password.html +++ b/httemplate/misc/process/change-password.html @@ -1,3 +1,32 @@ +% if ( $error ) { +% if ($svcnum) { +% $cgi->param('svcnum', $svcnum); +% $cgi->param("changepw${svcnum}_error", $error); +% } +% elsif ($contactnum) { +% $cgi->param('contactnum', $contactnum); +% $cgi->param("changepw${contactnum}_error", $error); +% } +% } else { +% if ($svcnum) { $cgi->query_string($svcnum); } +% elsif ($contactnum) { $cgi->query_string($contactnum); } +% } + +% if (!$popup) { +% if ($svcnum) { + <% $cgi->redirect($fsurl.'view/svc_acct.cgi?'.$cgi->query_string) %> +% } +% elsif ($contactnum) { + <% $cgi->redirect($fsurl.'edit/cust_main-contacts.html?'.$cgi->param('custnum')) %> +% } +% } + +<& /elements/header-popup.html, 'Password Set' &> +<SCRIPT TYPE="text/javascript"> + topreload(); + parent.cClick(); +</SCRIPT> + <%init> my $curuser = $FS::CurrentUser::CurrentUser; @@ -7,6 +36,8 @@ my $svcnum = $1; $cgi->param('contactnum') =~ /^(\d+)$/ or die "illegal contactnum" if $cgi->param('contactnum'); my $contactnum = $1; +my $popup = $cgi->param('popup'); + my $newpass = $cgi->param('password'); my $error; @@ -39,25 +70,4 @@ elsif ($contactnum) { #$cgi->delete('password'); } -</%init> -% if ( $error ) { -% if ($svcnum) { -% $cgi->param('svcnum', $svcnum); -% $cgi->param("changepw${svcnum}_error", $error); -% } -% elsif ($contactnum) { -% $cgi->param('contactnum', $contactnum); -% $cgi->param("changepw${contactnum}_error", $error); -% } -% } else { -% if ($svcnum) { $cgi->query_string($svcnum); } -% elsif ($contactnum) { $cgi->query_string($contactnum); } -% } -%warn('my pwd error is ' . $error . ' end'); -% if ($svcnum) { - <% $cgi->redirect($fsurl.'view/svc_acct.cgi?'.$cgi->query_string) %> -% } -% elsif ($contactnum) { - <% $cgi->redirect($fsurl.'edit/cust_main-contacts.html?'.$cgi->param('custnum')) %> -% } - +</%init>
\ No newline at end of file |