WIP - Display logins history when Yubikey is required (#1442)
This commit is contained in:
parent
8028aeff58
commit
1cffd4fc02
|
@ -62,6 +62,10 @@ sub init {
|
|||
|
||||
sub run {
|
||||
my ( $self, $req, $token, $_2fDevices ) = @_;
|
||||
|
||||
my $checkLogins = $req->param('checkLogins');
|
||||
$self->logger->debug("Yubikey checkLogins set") if ($checkLogins);
|
||||
|
||||
my $yubikey = 0;
|
||||
if ( $req->{sessionInfo}->{_2fDevices} ) {
|
||||
$self->logger->debug("Loading 2F Devices ...");
|
||||
|
@ -104,6 +108,7 @@ sub run {
|
|||
TARGET => '/yubikey2fcheck',
|
||||
INPUTLOGO => 'yubikey.png',
|
||||
LEGEND => 'clickOnYubikey',
|
||||
CHECKLOGINS => $checkLogins
|
||||
}
|
||||
);
|
||||
$self->logger->debug("Display Yubikey form");
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
<form action="<TMPL_IF "TARGET"><TMPL_VAR "TARGET"><TMPL_ELSE>/ext2fcheck</TMPL_IF>" method="post" class="password" role="form">
|
||||
<div class="form">
|
||||
<input type="hidden" id="token" name="token" value="<TMPL_VAR NAME="TOKEN">">
|
||||
<input type="hidden" id="checkLogins" name="checkLogins" value="<TMPL_VAR NAME="CHECKLOGINS">">
|
||||
<div class="form-group input-group">
|
||||
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i> </span>
|
||||
<input name="code" value="" class="form-control" id="extcode" trplaceholder="code">
|
||||
|
|
Loading…
Reference in New Issue
Block a user