Package DE_EPAGES::Presentation::API::LoginChecker
The LoginChecker class is a trigger dispatcher for the Login action: LoginAttempt A login is started LoginFailure A login attempt has failed LoginSucessful A login has been finish succesfuly The Listeners can stop the Login process in the step LoginAttempt setting: $hTriggerArguments->{'MessageResponse'}->{'CancelLogin'} = 1 ; and notice the reason by, for instance: $hTriggerArguments->{'MessageResponse'}->{'Reason'} = 'LOGIN_LOCKED' ;
@EXPORT_OK |
Functions
NewLoginChecker
Function responsible to create and return a new LoginChecker object.
Syntax |
$LoginChecker = NewLoginChecker( $Servlet ) ; |
Input |
|
Return |
|
new
LoginChecker constructor.
Syntax |
$LoginChecker = new( $Servlet ) ; |
Input |
|
Return |
|
setUser
Setter method for the successfuly logged user
Syntax |
$LoginChecker->setUser( $User ) ; |
Input |
|
startLoginAttempt
Notify to Listeners a Login is started.
Syntax |
$LoginChecker->startLoginAttempt() ; |
Return |
|
triggerLoginFailure
Notify to Listeners the Login attempt has failed.
Syntax |
$LoginChecker->triggerLoginFailure( $FailReason ); |
Input |
|
triggerLoginSuccessful
Notify to Listeners the Login attempt has finisehd successfuly.
Syntax |
$LoginChecker->triggerLoginSuccessful(); |