summaryrefslogtreecommitdiff
path: root/FS/FS/AuthCookieHandler.pm
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2022-09-07 17:22:54 -0700
committerIvan Kohler <ivan@freeside.biz>2022-09-07 17:22:54 -0700
commit618c671fd12beb2122a4c32c0042546a19a9c765 (patch)
treeca6d2e8869d526a63259144ef2e37ad8ba51b4d2 /FS/FS/AuthCookieHandler.pm
parent6229b35780da2f5593202aa1f0a61f31eb8fa9fa (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;
}