Class yeesoft\auth\controllers\DefaultController

Inheritanceyeesoft\auth\controllers\DefaultController » yeesoft\controllers\BaseController » yii\web\Controller

Public Methods

Hide inherited methods

MethodDescriptionDefined By
actionConfirmEmail() yeesoft\auth\controllers\DefaultController
actionConfirmEmailReceive() Receive token, find user by it and confirm email yeesoft\auth\controllers\DefaultController
actionConfirmRegistrationEmail() Receive token after registration, find user by it and confirm email yeesoft\auth\controllers\DefaultController
actionLogin() Login form yeesoft\auth\controllers\DefaultController
actionLogout() Logout and redirect to home page yeesoft\auth\controllers\DefaultController
actionProfile() yeesoft\auth\controllers\DefaultController
actionRemoveAvatar() yeesoft\auth\controllers\DefaultController
actionResetPassword() Action to reset password yeesoft\auth\controllers\DefaultController
actionResetPasswordRequest() Receive token, find user by it and show form to change password yeesoft\auth\controllers\DefaultController
actionSetEmail() yeesoft\auth\controllers\DefaultController
actionSetPassword() yeesoft\auth\controllers\DefaultController
actionSetUsername() yeesoft\auth\controllers\DefaultController
actionSignup() Signup page yeesoft\auth\controllers\DefaultController
actionUnlinkOauth() yeesoft\auth\controllers\DefaultController
actionUpdatePassword() Change your own password yeesoft\auth\controllers\DefaultController
actionUploadAvatar() yeesoft\auth\controllers\DefaultController
actions() yeesoft\auth\controllers\DefaultController
behaviors() yeesoft\auth\controllers\DefaultController
init() yeesoft\controllers\BaseController
onAuthSuccess() yeesoft\auth\controllers\DefaultController

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
createUser() yeesoft\auth\controllers\DefaultController
parseClientAttributes() yeesoft\auth\controllers\DefaultController
renderIsAjax() Render ajax or usual depends on request yeesoft\controllers\BaseController
triggerModuleEvent() Universal method for triggering events like "before registration", "after registration" and so on yeesoft\auth\controllers\DefaultController

Property Details

$freeAccessActions public property
public array $freeAccessActions = ['login''logout''captcha''oauth''signup''confirm-email''confirm-registration-email''confirm-email-receive''reset-password''reset-password-request''update-password''set-email''set-username''set-password''profile''upload-avatar''remove-avatar''unlink-oauth']

Method Details

actionConfirmEmail() public method

public string|\yii\web\Response actionConfirmEmail ( )
actionConfirmEmailReceive() public method

Receive token, find user by it and confirm email

public string|\yii\web\Response actionConfirmEmailReceive ( $token )
$token string
throws \yii\web\NotFoundHttpException
actionConfirmRegistrationEmail() public method

Receive token after registration, find user by it and confirm email

public string|\yii\web\Response actionConfirmRegistrationEmail ( $token )
$token string
throws \yii\web\NotFoundHttpException
actionLogin() public method

Login form

public string actionLogin ( )
actionLogout() public method

Logout and redirect to home page

public void actionLogout ( )
actionProfile() public method

public string|\yii\web\Response actionProfile ( )
actionRemoveAvatar() public method

public void actionRemoveAvatar ( )
actionResetPassword() public method

Action to reset password

public string|\yii\web\Response actionResetPassword ( )
actionResetPasswordRequest() public method

Receive token, find user by it and show form to change password

public string|\yii\web\Response actionResetPasswordRequest ( $token )
$token string
throws \yii\web\NotFoundHttpException
actionSetEmail() public method

public string|\yii\web\Response actionSetEmail ( )
actionSetPassword() public method

public string|\yii\web\Response actionSetPassword ( )
actionSetUsername() public method

public string|\yii\web\Response actionSetUsername ( )
actionSignup() public method

Signup page

public string actionSignup ( )
actionUnlinkOauth() public method

public void actionUnlinkOauth ( $redirectUrl null )
$redirectUrl
actionUpdatePassword() public method

Change your own password

public string|\yii\web\Response actionUpdatePassword ( )
throws \yii\web\ForbiddenHttpException
actionUploadAvatar() public method

public void actionUploadAvatar ( )
actions() public method

public array actions ( )
behaviors() public method

public void behaviors ( )
createUser() protected method

protected void createUser ( $attributes )
$attributes
onAuthSuccess() public method

public void onAuthSuccess ( $client )
$client
parseClientAttributes() protected method

protected void parseClientAttributes ( $client )
$client
triggerModuleEvent() protected method

Universal method for triggering events like "before registration", "after registration" and so on

protected bool triggerModuleEvent ( $eventName, $data = [] )
$eventName string
$data array