Commit d1691877 authored by Christophe Maudoux's avatar Christophe Maudoux 🐛

WIP - Propage display logins history to ext and REST 2F (#1442)

parent 1cffd4fc
......@@ -34,6 +34,9 @@ sub init {
sub run {
my ( $self, $req, $token ) = @_;
my $checkLogins = $req->param('checkLogins');
$self->logger->debug("Ext2F checkLogins set") if ($checkLogins);
# Prepare command and launch it
if ( my $c =
......@@ -49,7 +52,8 @@ sub run {
'ext2fcheck',
params => {
SKIN => $self->conf->{portalSkin},
TOKEN => $token
TOKEN => $token,
CHECKLOGINS => $checkLogins
}
);
$self->logger->debug("Prepare external 2F verification");
......
......@@ -55,6 +55,9 @@ sub init {
sub run {
my ( $self, $req, $token ) = @_;
my $checkLogins = $req->param('checkLogins');
$self->logger->debug("REST2F checkLogins set") if ($checkLogins);
if ( $self->conf->{rest2fInitUrl} ) {
......@@ -89,6 +92,7 @@ sub run {
SKIN => $self->conf->{portalSkin},
TOKEN => $token,
TARGET => '/rest2fcheck',
CHECKLOGINS => $checkLogins
}
);
$self->logger->debug("Prepare external REST verification");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment