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

View File

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