PHP 클래스 Piwik\Plugins\Login\Controller

상속: extends Piwik\Plugin\Controller
파일 보기 프로젝트 열기: piwik/piwik 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$auth Auth
$passwordResetter PasswordResetter
$sessionInitializer SessionInitializer

공개 메소드들

메소드 설명
__construct ( PasswordResetter $passwordResetter = null, AuthInterface $auth = null, $sessionInitializer = null ) 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.

보호된 메소드들

메소드 설명
authenticateAndRedirect ( string $login, string $password, boolean $rememberMe, string $urlToRedirect = false, boolean $passwordHashed = false ) : string Authenticate user and password. Redirect if successful.
configureView ( View $view ) 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.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( PasswordResetter $passwordResetter = null, AuthInterface $auth = null, $sessionInitializer = null )
$passwordResetter PasswordResetter
$auth AuthInterface

ajaxNoAccess() 공개 메소드

Error message shown when an AJAX request has no access
public ajaxNoAccess ( string $errorMessage ) : string
$errorMessage string
리턴 string

authenticateAndRedirect() 보호된 메소드

Authenticate user and password. Redirect if successful.
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
리턴 string failure message if unable to authenticate

clearSession() 공개 정적인 메소드

Clear session information
public static clearSession ( ) : void
리턴 void

configureView() 보호된 메소드

Configure common view properties
protected configureView ( View $view )
$view Piwik\View

confirmResetPassword() 공개 메소드

Users visit this action from a link supplied in an email.

getMessageExceptionNoAccess() 보호된 메소드

getMessageExceptionNoAccessWhenInsecureConnectionMayBeUsed() 보호된 메소드

Indicate to user how to solve this particular use case by forcing secure connections.

index() 공개 메소드

Default action
public index ( ) : string
리턴 string

login() 공개 메소드

Login form
public login ( string $messageNoAccess = null, boolean $infoMessage = false ) : string
$messageNoAccess string Access error message
$infoMessage boolean
리턴 string

logme() 공개 메소드

Form-less login
또한 보기: how to use it on http://piwik.org/faq/how-to/#faq_30
public logme ( ) : void
리턴 void

logout() 공개 메소드

Logout current user
public logout ( ) : void
리턴 void

resetPassword() 공개 메소드

Reset password action. Stores new password as hash and sends email to confirm use.
public resetPassword ( )

resetPasswordFirstStep() 보호된 메소드

Saves password reset info and sends confirmation email.
protected resetPasswordFirstStep ( Piwik\QuickForm2 $form ) : array
$form Piwik\QuickForm2
리턴 array Error message(s) if an error occurs.

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.

프로퍼티 상세

$auth 보호되어 있는 프로퍼티

protected Auth,Piwik\Plugins\Login $auth
리턴 Auth

$passwordResetter 보호되어 있는 프로퍼티

protected PasswordResetter,Piwik\Plugins\Login $passwordResetter
리턴 PasswordResetter

$sessionInitializer 보호되어 있는 프로퍼티

protected SessionInitializer,Piwik\Plugins\Login $sessionInitializer
리턴 SessionInitializer