diff options
author | ivan <ivan> | 2010-04-19 07:09:17 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-04-19 07:09:17 +0000 |
commit | 860ba14587816649210dd43a5728cf4b007bfa54 (patch) | |
tree | 49982151b6302408fb4f0c5c59922e372607886a /httemplate/edit/svc_acct.cgi | |
parent | 5beabbb6a5dfe410545ceab8b4ed0ddcb96fd9c8 (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-x | httemplate/edit/svc_acct.cgi | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/httemplate/edit/svc_acct.cgi b/httemplate/edit/svc_acct.cgi index 04c442a30..35c9006f6 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 |