projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
google authenticator support, RT#86743
[freeside.git]
/
FS
/
FS
/
AuthCookieHandler.pm
diff --git
a/FS/FS/AuthCookieHandler.pm
b/FS/FS/AuthCookieHandler.pm
index
93d8ea6
..
b7d0dbf
100644
(file)
--- a/
FS/FS/AuthCookieHandler.pm
+++ b/
FS/FS/AuthCookieHandler.pm
@@
-13,13
+13,13
@@
sub useragent_ip {
}
sub authen_cred {
}
sub authen_cred {
- my( $self, $r, $username, $password ) = @_;
+ my( $self, $r, $username, $password
, $totp_code
) = @_;
preuser_setup();
my $info = {};
preuser_setup();
my $info = {};
- unless ( FS::Auth->authenticate($username, $password, $info) ) {
+ unless ( FS::Auth->authenticate($username, $password, $
totp_code, $
info) ) {
warn "failed auth $username from ". $self->useragent_ip($r). "\n";
return undef;
}
warn "failed auth $username from ". $self->useragent_ip($r). "\n";
return undef;
}