security phrase bug fixes
authorivan <ivan>
Sat, 6 Apr 2002 00:08:08 +0000 (00:08 +0000)
committerivan <ivan>
Sat, 6 Apr 2002 00:08:08 +0000 (00:08 +0000)
FS/FS/svc_acct.pm
httemplate/edit/svc_acct.cgi
httemplate/view/svc_acct.cgi

index 8d22c21..8e25f6a 100644 (file)
@@ -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
index 540d04c..eca0a31 100755 (executable)
@@ -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
index 496dab3..fd2a325 100755 (executable)
@@ -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});