X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fprocess%2Fchange-password.html;fp=httemplate%2Fmisc%2Fprocess%2Fchange-password.html;h=be83786cdb82cf502c1aa254bd3ec4286219a862;hb=e773f2d834f6757e7a0430184d9db6939e0b632d;hp=250e8320baea0e65a860903bf737f8ec37a7d65b;hpb=a616d0c27799413dfbe07ee86e75df3e0d5a740f;p=freeside.git 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' &> + + <%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'); } - -% 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')) %> -% } - + \ No newline at end of file