Do not log a warning when displaying form with Combination
When form-based authentication methods return PE_FIRSTLOGIN, do not log a warning because it's normal behavior to show the form.
This commit is contained in:
parent
fc034ad4bf
commit
1f1eeab9c8
|
@ -3,7 +3,7 @@ package Lemonldap::NG::Portal::Auth::Combination;
|
||||||
use strict;
|
use strict;
|
||||||
use Mouse;
|
use Mouse;
|
||||||
use Lemonldap::NG::Common::Combination::Parser;
|
use Lemonldap::NG::Common::Combination::Parser;
|
||||||
use Lemonldap::NG::Portal::Main::Constants qw(PE_OK PE_ERROR);
|
use Lemonldap::NG::Portal::Main::Constants qw(PE_OK PE_ERROR PE_FIRSTACCESS);
|
||||||
use Scalar::Util 'weaken';
|
use Scalar::Util 'weaken';
|
||||||
|
|
||||||
our $VERSION = '2.0.3';
|
our $VERSION = '2.0.3';
|
||||||
|
@ -197,7 +197,7 @@ sub try {
|
||||||
$req->sessionInfo->{ [ '_auth', '_userDB' ]->[$type] } = $name;
|
$req->sessionInfo->{ [ '_auth', '_userDB' ]->[$type] } = $name;
|
||||||
$req->sessionInfo->{_combinationTry} =
|
$req->sessionInfo->{_combinationTry} =
|
||||||
$req->data->{dataKeep}->{combinationTry};
|
$req->data->{dataKeep}->{combinationTry};
|
||||||
if ( $res > 0 ) {
|
if ( $res > 0 and $res != PE_FIRSTACCESS ) {
|
||||||
$self->userLogger->warn( 'All schemes failed'
|
$self->userLogger->warn( 'All schemes failed'
|
||||||
. ( $req->user ? ' for user ' . $req->user : '' ) );
|
. ( $req->user ? ' for user ' . $req->user : '' ) );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user