X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fsvc_phone.pm;h=90ba249456896f3a8ca9432e8b90c8c073a3f0b8;hb=191aade1149c753b915302d3f2bcc12db84a2358;hp=00ccc1958485f4e5c2b696c90a8d4499ba7bcbf9;hpb=9509e5bfb7f9331303153cac24d7bfecbe2ea9f1;p=freeside.git diff --git a/FS/FS/svc_phone.pm b/FS/FS/svc_phone.pm index 00ccc1958..90ba24945 100644 --- a/FS/FS/svc_phone.pm +++ b/FS/FS/svc_phone.pm @@ -175,6 +175,18 @@ sub check { $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