Commit 01b55fde authored by Clément OUDOT's avatar Clément OUDOT

Set _lastAuthnUTime in session (#1248)

parent 86f38ba5
......@@ -278,7 +278,13 @@ sub getUser {
sub authenticate {
my ( $self, $req ) = @_;
return $req->authResult( $self->_authentication->authenticate($req) );
my $ret = $req->authResult( $self->_authentication->authenticate($req) );
if ( $ret == PE_OK ) {
$req->{sessionInfo}->{_lastAuthnUTime} = time();
}
return $ret;
}
# Third block: Session data providing
......
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