summaryrefslogtreecommitdiff
path: root/httemplate/edit/svc_acct.cgi
diff options
context:
space:
mode:
authorivan <ivan>2010-04-19 07:09:17 +0000
committerivan <ivan>2010-04-19 07:09:17 +0000
commit860ba14587816649210dd43a5728cf4b007bfa54 (patch)
tree49982151b6302408fb4f0c5c59922e372607886a /httemplate/edit/svc_acct.cgi
parent5beabbb6a5dfe410545ceab8b4ed0ddcb96fd9c8 (diff)
communigate (phase 2), Account:Settings PasswordRecovery. also fix modification of svc_acct booleans in export. RT#7514
Diffstat (limited to 'httemplate/edit/svc_acct.cgi')
-rwxr-xr-xhttemplate/edit/svc_acct.cgi14
1 files changed, 12 insertions, 2 deletions
diff --git a/httemplate/edit/svc_acct.cgi b/httemplate/edit/svc_acct.cgi
index 04c442a..35c9006 100755
--- a/httemplate/edit/svc_acct.cgi
+++ b/httemplate/edit/svc_acct.cgi
@@ -335,6 +335,14 @@ Service # <% $svcnum ? "<B>$svcnum</B>" : " (NEW)" %><BR>
% #preferences
+ <% include('/elements/tr-checkbox.html',
+ 'label' => 'Password recovery',
+ 'field' => 'password_recover',
+ 'curr_value' => $svc_acct->password_recover,
+ 'value' => 'Y',
+ )
+ %>
+
<% include('/elements/tr-select.html',
'label' => 'Allowed mail rules',
'field' => 'cgp_rulesallowed',
@@ -517,9 +525,11 @@ if ( $cgi->param('error') ) {
$part_svc=qsearchs('part_svc',{'svcpart'=>$svcpart});
die "No part_svc entry!" unless $part_svc;
- $svc_acct = new FS::svc_acct({svcpart => $svcpart});
+ $svc_acct = new FS::svc_acct({svcpart => $svcpart});
+
+ $svcnum='';
- $svcnum='';
+ $svc_acct->password_recover('Y'); #default. hmm.
} else { #editing