From: ivan Date: Fri, 12 Nov 2010 01:17:18 +0000 (+0000) Subject: agent username/password, RT#9608 X-Git-Tag: TORRUS_1_0_9~101 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=886357c11bf29fc9edd1113ef81d51efe5bf9ca7 agent username/password, RT#9608 --- diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 8fce99024..a3f1b5422 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -2287,6 +2287,13 @@ and customer address. Include units.', }, { + 'key' => 'selfservice-agent_login', + 'section' => 'self-service', + 'description' => 'Allow agent login via self-service.', + 'type' => 'checkbox', + }, + + { 'key' => 'card_refund-days', 'section' => 'billing', 'description' => 'After a payment, the number of days a refund link will be available for that payment. Defaults to 120.', diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm index b8ba5b2d4..f63bae929 100644 --- a/FS/FS/Schema.pm +++ b/FS/FS/Schema.pm @@ -352,8 +352,8 @@ sub tables_hashref { 'invoice_template', 'varchar', 'NULL', $char_d, '', '', 'agent_custnum', 'int', 'NULL', '', '', '', 'disabled', 'char', 'NULL', 1, '', '', - 'username', 'varchar', 'NULL', $char_d, '', '', #deprecated - '_password', 'varchar', 'NULL', $char_d, '', '', #deprecated + 'username', 'varchar', 'NULL', $char_d, '', '', + '_password', 'varchar', 'NULL', $char_d, '', '', 'freq', 'int', 'NULL', '', '', '', #deprecated (never used) 'prog', @perl_type, '', '', #deprecated (never used) ], diff --git a/httemplate/edit/agent.cgi b/httemplate/edit/agent.cgi index 30a0865d3..6707d66a4 100755 --- a/httemplate/edit/agent.cgi +++ b/httemplate/edit/agent.cgi @@ -54,6 +54,25 @@ Agent #<% $agent->agentnum ? $agent->agentnum : "(NEW)" %> +% if ( $conf->exists('selfservice-agent_login') ) { + + + Username + + + + + Password + + + +% } else { + + + + +% } + Disable disabled eq 'Y' ? ' CHECKED' : '' %>>