summaryrefslogtreecommitdiff
path: root/FS/FS/AuthCookieHandler.pm
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2022-09-07 17:22:51 -0700
committerIvan Kohler <ivan@freeside.biz>2022-09-07 17:22:51 -0700
commit26ddb940ad27ce8ac5e87084eeed857a390987bc (patch)
tree3d6e1c46d8d703a1c6bb63820ab741d6a67ab506 /FS/FS/AuthCookieHandler.pm
parent691de38ac2ca6c54b37feb50e1332bab6268773f (diff)
google authenticator support, RT#86743
Diffstat (limited to 'FS/FS/AuthCookieHandler.pm')
-rw-r--r--FS/FS/AuthCookieHandler.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/AuthCookieHandler.pm b/FS/FS/AuthCookieHandler.pm
index 93d8ea6..b7d0dbf 100644
--- a/FS/FS/AuthCookieHandler.pm
+++ b/FS/FS/AuthCookieHandler.pm
@@ -13,13 +13,13 @@ sub useragent_ip {
}
sub authen_cred {
- my( $self, $r, $username, $password ) = @_;
+ my( $self, $r, $username, $password, $totp_code ) = @_;
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;
}