Catch PE_BADCREDENTIALS error in Combination display process (#2009)
This commit is contained in:
parent
c2c11342ac
commit
757399fa61
|
@ -2,7 +2,7 @@
|
||||||
# Display functions for LemonLDAP::NG Portal
|
# Display functions for LemonLDAP::NG Portal
|
||||||
package Lemonldap::NG::Portal::Main::Display;
|
package Lemonldap::NG::Portal::Main::Display;
|
||||||
|
|
||||||
our $VERSION = '2.0.6';
|
our $VERSION = '2.0.7';
|
||||||
|
|
||||||
package Lemonldap::NG::Portal::Main;
|
package Lemonldap::NG::Portal::Main;
|
||||||
use strict;
|
use strict;
|
||||||
|
@ -264,6 +264,7 @@ sub display {
|
||||||
or ( $self->conf->{authentication} eq 'Combination'
|
or ( $self->conf->{authentication} eq 'Combination'
|
||||||
and $req->{error} > PE_OK
|
and $req->{error} > PE_OK
|
||||||
and $req->{error} != PE_FIRSTACCESS
|
and $req->{error} != PE_FIRSTACCESS
|
||||||
|
and $req->{error} != PE_BADCREDENTIALS
|
||||||
and $req->{error} != PE_PP_PASSWORD_EXPIRED )
|
and $req->{error} != PE_PP_PASSWORD_EXPIRED )
|
||||||
|
|
||||||
# and ( $req->{error} == PE_TOKENEXPIRED or $req->{error} == PE_NOTOKEN )
|
# and ( $req->{error} == PE_TOKENEXPIRED or $req->{error} == PE_NOTOKEN )
|
||||||
|
|
Loading…
Reference in New Issue
Block a user