|
@@ 113-121 (lines=9) @@
|
| 110 |
|
return $this->redirect(['/site/auth', 'authclient' => $this->defaultAuthClient]); |
| 111 |
|
} |
| 112 |
|
|
| 113 |
|
public function actionLogout() |
| 114 |
|
{ |
| 115 |
|
Yii::$app->user->logout(); |
| 116 |
|
|
| 117 |
|
$back = Yii::$app->request->getHostInfo(); |
| 118 |
|
$url = Yii::$app->authClientCollection->getClient()->buildUrl('site/logout', compact('back')); |
| 119 |
|
|
| 120 |
|
return $this->redirect($url); |
| 121 |
|
} |
| 122 |
|
|
| 123 |
|
public function actionSignup() |
| 124 |
|
{ |
|
@@ 123-129 (lines=7) @@
|
| 120 |
|
return $this->redirect($url); |
| 121 |
|
} |
| 122 |
|
|
| 123 |
|
public function actionSignup() |
| 124 |
|
{ |
| 125 |
|
$back = Yii::$app->request->getHostInfo(); |
| 126 |
|
$url = Yii::$app->authClientCollection->getClient()->buildUrl('site/signup', compact('back')); |
| 127 |
|
|
| 128 |
|
return $this->redirect($url); |
| 129 |
|
} |
| 130 |
|
|
| 131 |
|
public function actionImpersonate($user_id) |
| 132 |
|
{ |