Expose risk level to other plugins (#2593)

This commit is contained in:
Maxime Besson 2021-09-06 17:50:10 +02:00
parent a6bcf1b51b
commit 6806864872

View File

@ -89,6 +89,7 @@ sub checkNewLocation {
. $req->user
. " logged in from unknown location $location" );
my $riskLevel = ( $req->sessionInfo->{_riskLevel} || 0 ) + 1;
$req->sessionInfo->{_riskLevel} = $riskLevel;
$req->sessionInfo->{_riskDetails}->{newLocation} =
$req->sessionInfo->{ $self->locationDisplayAttribute };
}