PHP Class PMA\libraries\plugins\AuthenticationPlugin

Afficher le fichier Open project: phpmyadmin/phpmyadmin Class Usage Examples

Méthodes publiques

Méthode Description
auth ( ) : boolean Displays authentication form
authCheck ( ) : boolean Gets advanced authentication settings
authFails ( ) : boolean User is not allowed to login to MySQL -> authentication failed
authSetUser ( ) : boolean Set the user and password after last checkings if required
getErrorMessage ( ) : string Returns error message for failed authentication.
getLoginFormURL ( ) : string Returns URL for login form.
handlePasswordChange ( string $password ) : void Callback when user changes password.
logOut ( ) : void Perform logout
setSessionAccessTime ( ) : void Store session access time in session.
storeUserCredentials ( ) : void Stores user credentials after successful login.

Method Details

auth() abstract public méthode

Displays authentication form
abstract public auth ( ) : boolean
Résultat boolean

authCheck() abstract public méthode

Gets advanced authentication settings
abstract public authCheck ( ) : boolean
Résultat boolean

authFails() abstract public méthode

User is not allowed to login to MySQL -> authentication failed
abstract public authFails ( ) : boolean
Résultat boolean

authSetUser() abstract public méthode

Set the user and password after last checkings if required
abstract public authSetUser ( ) : boolean
Résultat boolean

getErrorMessage() public méthode

Returns error message for failed authentication.
public getErrorMessage ( ) : string
Résultat string

getLoginFormURL() public méthode

Returns URL for login form.
public getLoginFormURL ( ) : string
Résultat string

handlePasswordChange() public méthode

Callback when user changes password.
public handlePasswordChange ( string $password ) : void
$password string New password to set
Résultat void

logOut() public méthode

Perform logout
public logOut ( ) : void
Résultat void

setSessionAccessTime() public méthode

Tries to workaround PHP 5 session garbage collection which looks at the session file's last modified time
public setSessionAccessTime ( ) : void
Résultat void

storeUserCredentials() public méthode

Stores user credentials after successful login.
public storeUserCredentials ( ) : void
Résultat void