[freeside-commits] freeside/FS/FS Conf.pm, 1.220, 1.221 svc_phone.pm, 1.3, 1.4

Ivan,,, ivan at wavetail.420.am
Sun Mar 16 15:24:25 PDT 2008


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv5391

Modified Files:
	Conf.pm svc_phone.pm 
Log Message:
phonenum + pin login

Index: svc_phone.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/svc_phone.pm,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- svc_phone.pm	10 Feb 2007 06:13:15 -0000	1.3
+++ svc_phone.pm	16 Mar 2008 22:24:23 -0000	1.4
@@ -175,6 +175,18 @@
   $self->SUPER::check;
 }
 
+=item check_pin
+
+Checks the supplied PIN against the PIN in the database.  Returns true for a
+sucessful authentication, false if no match.
+
+=cut
+
+sub check_pin {
+  my($self, $check_pin) = @_;
+  $check_pin eq $self->pin;
+}
+
 =back
 
 =head1 BUGS

Index: Conf.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Conf.pm,v
retrieving revision 1.220
retrieving revision 1.221
diff -u -d -r1.220 -r1.221
--- Conf.pm	14 Mar 2008 02:10:10 -0000	1.220
+++ Conf.pm	16 Mar 2008 22:24:23 -0000	1.221
@@ -1592,6 +1592,13 @@
   },
 
   {
+    'key'         => 'selfservice_server-phone_login',
+    'section'     => '',
+    'description' => 'Allow login to self-service with phone number and PIN.',
+    '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.',



More information about the freeside-commits mailing list