Fix login history storage (#1501)

This commit is contained in:
Christophe Maudoux 2018-09-21 21:22:29 +02:00
parent 4ea7e0aaeb
commit e65c086af6

View File

@ -289,12 +289,15 @@ sub authenticate {
$req->{sessionInfo}->{_lastAuthnUTime} = time();
return $ret;
}
$self->setSessionInfo($req);
$self->setPersistentSessionInfo($req);
$self->setMacros($req);
$self->storeHistory($req);
return $ret;
# Store failed login into history
$req->steps(
[ 'setSessionInfo', 'setMacros',
'setPersistentSessionInfo', 'storeHistory',
sub {PE_BADCREDENTIALS}
]
);
return PE_OK;
}
# Third block: Session data providing