%PDF- %PDF-
Direktori : /home/vacivi36/intranet.vacivitta.com.br/protected/humhub/modules/user/authclient/ |
Current File : /home/vacivi36/intranet.vacivitta.com.br/protected/humhub/modules/user/authclient/AuthAction.php |
<?php /** * @link https://www.humhub.org/ * @copyright Copyright (c) 2016 HumHub GmbH & Co. KG * @license https://www.humhub.com/licences */ namespace humhub\modules\user\authclient; use humhub\modules\user\authclient\interfaces\StandaloneAuthClient; use Yii; /** * Extended version of AuthAction with AuthClient support which are not handled * by AuthAction directly * * @since 1.1.2 * @author Luke */ class AuthAction extends \yii\authclient\AuthAction { /** * @inheritdoc * * @param StandaloneAuthClient $client * @return \yii\web\Response response instance. */ public function auth($client, $authUrlParams = []) { Yii::$app->session->set('loginRememberMe', (boolean) Yii::$app->request->get('rememberMe')); if ($client instanceof StandaloneAuthClient) { return $client->authAction($this); } return parent::auth($client); } /** * @inheritdoc */ public function authSuccess($client) { return parent::authSuccess($client); } }