Completed
Push — master ( 9c0f6d...e28c7c )
by Alexey
37:38
created
controllers/behaviors/AuthUserBehavior.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,9 +93,9 @@
 block discarded – undo
93 93
 
94 94
         Yii::$app->mailer->viewPath = '@yiicod/yii2-auth/mail';
95 95
         Yii::$app->mailer->compose('passwordResetToken', ['action' => $event->action, 'user' => $event->model->findUser()])
96
-            ->setFrom([Yii::$app->params['supportEmail'] => Yii::$app->name . ' robot'])
96
+            ->setFrom([Yii::$app->params['supportEmail'] => Yii::$app->name.' robot'])
97 97
             ->setTo($event->model->email)
98
-            ->setSubject('Password reset for ' . Yii::$app->name)
98
+            ->setSubject('Password reset for '.Yii::$app->name)
99 99
             ->send();
100 100
 
101 101
         Yii::$app->getSession()->setFlash('success', 'Check your email for further instructions.');
Please login to merge, or discard this patch.
models/UserModel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
         if (empty($token)) {
108 108
             return false;
109 109
         }
110
-        $timestamp = (int)substr($token, strrpos($token, '_') + 1);
110
+        $timestamp = (int) substr($token, strrpos($token, '_') + 1);
111 111
         $expire = Yii::$app->params['user.passwordResetTokenExpire'];
112 112
 
113 113
         return $timestamp + $expire >= time();
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
      */
192 192
     public function generatePasswordResetToken()
193 193
     {
194
-        $this->password_reset_token = Yii::$app->security->generateRandomString() . '_' . time();
194
+        $this->password_reset_token = Yii::$app->security->generateRandomString().'_'.time();
195 195
     }
196 196
 
197 197
     /**
Please login to merge, or discard this patch.