Class lispa\amos\admin\controllers\SecurityController
Class SecurityController
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$action | yii\base\Action | The action that is currently being executed. | yii\base\Controller |
$actionParams | array | The parameters bound to the current action. | yii\web\Controller |
$behaviors | yii\base\Behavior[] | List of behaviors attached to this component | yii\base\Component |
$defaultAction | string | The ID of the action that is used when the action ID is not specified in the request. | yii\base\Controller |
$enableCsrfValidation | boolean | Whether to enable CSRF validation for the actions in this controller. | yii\web\Controller |
$id | string | The ID of this controller. | yii\base\Controller |
$layout | string | lispa\amos\admin\controllers\SecurityController | |
$module | yii\base\Module | The module that this controller belongs to. | yii\base\Controller |
$modules | yii\base\Module[] | All ancestor modules that this controller is located within. | yii\base\Controller |
$route | string | The route (module ID, controller ID and action ID) of the current request. | yii\base\Controller |
$uniqueId | string | The controller ID that is prefixed with the module ID (if any). | yii\base\Controller |
$view | yii\base\View|yii\web\View | The view object that can be used to render views or view files. | yii\base\Controller |
$viewPath | string | The view path that may be prefixed to a relative view name. | yii\base\ViewContextInterface |
Public Methods
Protected Methods
Method | Description | Defined By |
---|---|---|
createSocialUser() | lispa\amos\admin\controllers\SecurityController | |
setUserLanguage() | lispa\amos\core\controllers\AmosController |
Events
Event | Type | Description | Defined By |
---|---|---|---|
EVENT_AFTER_ACTION | yii\base\ActionEvent | An event raised right after executing a controller action. | yii\base\Controller |
EVENT_BEFORE_ACTION | yii\base\ActionEvent | An event raised right before executing a controller action. | yii\base\Controller |
Property Details
Method Details
public \lispa\amos\admin\controllers\type actionCheckSessionScope ( ) |
public yii\web\Response actionDeimpersonate ( ) |
Action to disable notifications
public string actionDisableNotifications ( $token ) | ||
$token | ||
throws | yii\web\NotFoundHttpException |
---|
Forgotten password form
public string|yii\web\Response actionForgotPassword ( ) |
public yii\web\Response actionImpersonate ( $user_id ) | ||
$user_id | integer |
Login-info choice at register step
public string actionInsertAuthData ( ) |
Login action and function called on login view.
public string actionLogin ( ) |
Logout action.
public string actionLogout ( ) |
Action to request the reactivation of a profile.
public string actionReactivateProfile ( ) |
public boolean|yii\web\Response actionRegister ( ) |
public void actionResetDashboardByScope ( ) |
public void actionSecurityMessage ( ) |
Send Login-infos to user
public mixed actionSpedisciCredenziali ( $id, $isForgotPasswordView = false, $isForgotPasswordRequest = false, $urlCurrent = null ) | ||
$id | integer | UserProfile ID |
$isForgotPasswordView | boolean | Set true if this function is called from the forgot-password view to avoid appearing of flash messages |
$isForgotPasswordRequest | boolean | Set true if this function is called from a reset password request action |
$urlCurrent | string | The previous link to use in mail. |
Action to unsubscribe a user from the notification emails.
public string actionUnsubscribe ( $id, $token ) | ||
$id | integer | |
$token | string |
Declares external actions for the controller.
This method is meant to be overwritten to declare external actions for the controller. It should return an array, with array keys being action IDs, and array values the corresponding action class names or action configuration arrays. For example,
return [
'action1' => 'app\components\Action1',
'action2' => [
'class' => 'app\components\Action2',
'property1' => 'value1',
'property2' => 'value2',
],
];
Yii::createObject() will be used later to create the requested action using the configuration provided here.
public void actions ( ) |
public array behaviors ( ) |
protected boolean|\lispa\amos\admin\controllers\SocialAuthUsers createSocialUser ( $userProfile, \Hybrid_User_Profile $socialProfile, $provider ) | ||
$userProfile | lispa\amos\admin\models\UserProfile | |
$socialProfile | \Hybrid_User_Profile | |
$provider |
Initializes the object.
This method is invoked at the end of the constructor after the object is initialized with the given configuration.
public void init ( ) |
Login function called in case of automatic login needs.
public string|yii\web\Response login ( $usernameOrEmail, $password, $community_id = null, $postLoginUrl = null, $isFirstAccess = false ) | ||
$usernameOrEmail | string | |
$password | string | |
$community_id | integer|null | |
$postLoginUrl | string|null | |
$isFirstAccess | ||
throws | Exception |
---|
public void shibbolethAuthentication ( ) |
public static void shibbolethHeaderParse ( ) |