From: ivan Date: Sat, 6 Apr 2002 00:08:08 +0000 (+0000) Subject: security phrase bug fixes X-Git-Tag: freeside_1_4_0_pre12~107 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=195652229909566ccb3a6ae249d8fa26f25da55a security phrase bug fixes --- 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) =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 +my $sec_phrase = $svc_acct->sec_phrase; if ( $conf->exists('security_phrase') ) { print <Security phrase @@ -129,6 +130,8 @@ if ( $conf->exists('security_phrase') ) { (for forgotten passwords) END +} else { + print qq!!; } #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 'Security phrase'. - $svc_acct->sec_phrase. '; + $svc_acct->sec_phrase. ''; } my $svc_acct_pop = qsearchs('svc_acct_pop',{'popnum'=>$svc_acct->popnum});