diff options
author | ivan <ivan> | 2002-04-06 00:08:08 +0000 |
---|---|---|
committer | ivan <ivan> | 2002-04-06 00:08:08 +0000 |
commit | 195652229909566ccb3a6ae249d8fa26f25da55a (patch) | |
tree | ecc6675f83425e7a0b279bfe3aa4f510990f303f /httemplate | |
parent | 87af741da0dd5f6a76bbb566b4d6c54cd5b15315 (diff) |
security phrase bug fixes
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/edit/svc_acct.cgi | 3 | ||||
-rwxr-xr-x | httemplate/view/svc_acct.cgi | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/httemplate/edit/svc_acct.cgi b/httemplate/edit/svc_acct.cgi index 540d04c38..eca0a31cf 100755 --- a/httemplate/edit/svc_acct.cgi +++ b/httemplate/edit/svc_acct.cgi @@ -122,6 +122,7 @@ print &ntable("#cccccc",2), <<END; </TR> END +my $sec_phrase = $svc_acct->sec_phrase; if ( $conf->exists('security_phrase') ) { print <<END; <TR><TD ALIGN="right">Security phrase</TD> @@ -129,6 +130,8 @@ if ( $conf->exists('security_phrase') ) { (for forgotten passwords)</TD> </TD> END +} else { + print qq!<INPUT TYPE="hidden" NAME="sec_phrase" VALUE="$sec_phrase">!; } #domain diff --git a/httemplate/view/svc_acct.cgi b/httemplate/view/svc_acct.cgi index 496dab366..fd2a32547 100755 --- a/httemplate/view/svc_acct.cgi +++ b/httemplate/view/svc_acct.cgi @@ -82,7 +82,7 @@ $password = ''; if ( $conf->exists('security_phrase') ) { my $sec_phrase = $svc_acct->sec_phrase; print '<TR><TD ALIGN="right">Security phrase</TD><TD BGCOLOR="#ffffff">'. - $svc_acct->sec_phrase. '</TD></TR>; + $svc_acct->sec_phrase. '</TD></TR>'; } my $svc_acct_pop = qsearchs('svc_acct_pop',{'popnum'=>$svc_acct->popnum}); |