Add PE_PASSWORD_OK to stopping cases (#2660)

This commit is contained in:
Maxime Besson 2022-02-02 19:08:26 +01:00 committed by Yadd
parent bf463b82af
commit e883860891
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@ use Lemonldap::NG::Portal::Main::Constants qw(
PE_ERROR
PE_FIRSTACCESS
PE_FORMEMPTY
PE_PASSWORD_OK
PE_OK
);
use Scalar::Util 'weaken';
@ -287,6 +288,7 @@ sub stop {
if (
$res <= 0 # PE_OK
or $res == PE_CONFIRM
or $res == PE_PASSWORD_OK
# TODO: adding this may generate behavior change
#or $res == PE_FIRSTACCESS