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 | |
parent | 87af741da0dd5f6a76bbb566b4d6c54cd5b15315 (diff) |
security phrase bug fixes
-rw-r--r-- | FS/FS/svc_acct.pm | 2 | ||||
-rwxr-xr-x | httemplate/edit/svc_acct.cgi | 3 | ||||
-rwxr-xr-x | httemplate/view/svc_acct.cgi | 2 |
3 files changed, 6 insertions, 1 deletions
diff --git a/FS/FS/svc_acct.pm b/FS/FS/svc_acct.pm index 8d22c21e0..8e25f6afc 100644 --- a/FS/FS/svc_acct.pm +++ b/FS/FS/svc_acct.pm @@ -170,6 +170,8 @@ FS::svc_Common. The following fields are currently supported: =item _password - generated if blank +=item sec_phrase - security phrase + =item popnum - Point of presence (see L<FS::svc_acct_pop>) =item uid 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}); |