[freeside-commits] freeside/FS/FS/ClientAPI MyAccount.pm, 1.75, 1.76
Ivan,,,
ivan at wavetail.420.am
Sat Nov 29 13:54:37 PST 2008
Update of /home/cvs/cvsroot/freeside/FS/FS/ClientAPI
In directory wavetail.420.am:/tmp/cvs-serv1306/FS/FS/ClientAPI
Modified Files:
MyAccount.pm
Log Message:
add selfservice_server-single_domain config, and login_info self-service method to give the login page a bit more configurability
Index: MyAccount.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/ClientAPI/MyAccount.pm,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -d -r1.75 -r1.76
--- MyAccount.pm 9 Sep 2008 22:35:12 -0000 1.75
+++ MyAccount.pm 29 Nov 2008 21:54:34 -0000 1.76
@@ -55,6 +55,20 @@
} );
}
+sub login_info {
+ my $p = shift;
+
+ my $conf = new FS::Conf;
+
+ my %info = (
+ 'phone_login' => $conf->exists('selfservice_server-phone_login'),
+ 'single_domain'=> scalar($conf->config('selfservice_server-single_domain')),
+ );
+
+ return \%info;
+
+}
+
#false laziness w/FS::ClientAPI::passwd::passwd
sub login {
my $p = shift;
More information about the freeside-commits
mailing list