Modify redirect rule #1417

This commit is contained in:
Christophe Maudoux 2018-05-07 17:37:51 +02:00
parent 847ffa31b1
commit 3afe82fe30

View File

@ -254,7 +254,7 @@ sub _displayRegister {
};
}
}
if ( @am == 1 ) {
if ( @am == 1 and not $req->userData->{_2fDevices} ) {
return [ 302, [ Location => $self->conf->{portal} . $am[0]->{URL} ],
[] ];
}