@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | 'rules' => [ |
| 50 | 50 | [ |
| 51 | 51 | 'allow' => true, |
| 52 | - 'actions' => ['profile', 'account', 'privacy', 'avatar', 'confirm', 'networks', 'disconnect','follower-tag'], |
|
| 52 | + 'actions' => ['profile', 'account', 'privacy', 'avatar', 'confirm', 'networks', 'disconnect', 'follower-tag'], |
|
| 53 | 53 | 'roles' => ['@'], |
| 54 | 54 | ], |
| 55 | 55 | ], |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | Yii::$app->response->format = Response::FORMAT_JSON; |
| 130 | 130 | $tagId = Yii::$app->request->post('tag_id', null); |
| 131 | 131 | if (($tag = Tag::findOne($tagId)) == null) { |
| 132 | - throw new NotFoundHttpException (); |
|
| 132 | + throw new NotFoundHttpException(); |
|
| 133 | 133 | } else { |
| 134 | 134 | /** @var \yuncms\user\models\User $user */ |
| 135 | 135 | $user = Yii::$app->user->identity; |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | public function actionConfirm($id, $code) |
| 158 | 158 | { |
| 159 | 159 | $user = User::findOne($id); |
| 160 | - if ($user === null || Yii::$app->settings->get('emailChangeStrategy','user') == UserSettings::STRATEGY_INSECURE) { |
|
| 160 | + if ($user === null || Yii::$app->settings->get('emailChangeStrategy', 'user') == UserSettings::STRATEGY_INSECURE) { |
|
| 161 | 161 | throw new NotFoundHttpException(); |
| 162 | 162 | } |
| 163 | 163 | $user->attemptEmailChange($code); |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | |
| 129 | 129 | if ($user->load(Yii::$app->request->post()) && $user->createUser()) { |
| 130 | 130 | $account->connect($user); |
| 131 | - Yii::$app->user->login($user, Yii::$app->settings->get('rememberFor','user')); |
|
| 131 | + Yii::$app->user->login($user, Yii::$app->settings->get('rememberFor', 'user')); |
|
| 132 | 132 | return $this->goBack(); |
| 133 | 133 | } |
| 134 | 134 | |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | public function actionConfirm($id, $code) |
| 150 | 150 | { |
| 151 | 151 | $user = User::findOne($id); |
| 152 | - if ($user === null || Yii::$app->settings->get('enableConfirmation','user') == false) { |
|
| 152 | + if ($user === null || Yii::$app->settings->get('enableConfirmation', 'user') == false) { |
|
| 153 | 153 | return $this->goBack(); |
| 154 | 154 | } |
| 155 | 155 | $user->attemptEmailConfirmation($code); |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | */ |
| 164 | 164 | public function actionResend() |
| 165 | 165 | { |
| 166 | - if (Yii::$app->settings->get('enableConfirmation','user') == false) { |
|
| 166 | + if (Yii::$app->settings->get('enableConfirmation', 'user') == false) { |
|
| 167 | 167 | return $this->goBack(); |
| 168 | 168 | } |
| 169 | 169 | /** @var ResendForm $model */ |