Property | Type | Description | |
---|---|---|---|
$auth | |||
$passwordResetter | |||
$sessionInitializer |
Method | Description | |
---|---|---|
__construct ( |
Constructor. | |
ajaxNoAccess ( string $errorMessage ) : string | Error message shown when an AJAX request has no access | |
clearSession ( ) : void | Clear session information | |
confirmResetPassword ( ) | Password reset confirmation action. Finishes the password reset process. | |
index ( ) : string | Default action | |
login ( string $messageNoAccess = null, boolean $infoMessage = false ) : string | Login form | |
logme ( ) : void | Form-less login | |
logout ( ) : void | Logout current user | |
resetPassword ( ) | Reset password action. Stores new password as hash and sends email to confirm use. | |
resetPasswordSuccess ( ) | The action used after a password is successfully reset. Displays the login screen with an extra message. A separate action is used instead of returning the HTML in confirmResetPassword so the resetToken won't be in the URL. |
Method | Description | |
---|---|---|
authenticateAndRedirect ( string $login, string $password, boolean $rememberMe, string $urlToRedirect = false, boolean $passwordHashed = false ) : string | Authenticate user and password. Redirect if successful. | |
configureView ( |
Configure common view properties | |
getMessageExceptionNoAccess ( ) | ||
getMessageExceptionNoAccessWhenInsecureConnectionMayBeUsed ( ) : string | The Session cookie is set to a secure cookie, when SSL is mis-configured, it can cause the PHP session cookie ID to change on each page view. | |
resetPasswordFirstStep ( Piwik\QuickForm2 $form ) : array | Saves password reset info and sends confirmation email. |
public __construct ( |
||
$passwordResetter | ||
$auth | AuthInterface |
public ajaxNoAccess ( string $errorMessage ) : string | ||
$errorMessage | string | |
return | string |
protected authenticateAndRedirect ( string $login, string $password, boolean $rememberMe, string $urlToRedirect = false, boolean $passwordHashed = false ) : string | ||
$login | string | user name |
$password | string | plain-text or hashed password |
$rememberMe | boolean | Remember me? |
$urlToRedirect | string | URL to redirect to, if successfully authenticated |
$passwordHashed | boolean | indicates if $password is hashed |
return | string | failure message if unable to authenticate |
public static clearSession ( ) : void | ||
return | void |
protected configureView ( |
||
$view |
public confirmResetPassword ( ) |
protected getMessageExceptionNoAccessWhenInsecureConnectionMayBeUsed ( ) : string | ||
return | string |
public resetPassword ( ) |
protected resetPasswordFirstStep ( Piwik\QuickForm2 $form ) : array | ||
$form | Piwik\QuickForm2 | |
return | array | Error message(s) if an error occurs. |
public resetPasswordSuccess ( ) |
protected PasswordResetter,Piwik\Plugins\Login $passwordResetter | ||
return |