|
|
@ -128,7 +128,7 @@ class User extends ActiveRecord implements IdentityInterface |
|
|
|
public function scenarios() |
|
|
|
public function scenarios() |
|
|
|
{ |
|
|
|
{ |
|
|
|
return [ |
|
|
|
return [ |
|
|
|
'signup' => ['username', 'email', 'password'], |
|
|
|
'signup' => ['username', 'email', 'password', '!status', '!role'], |
|
|
|
'resetPassword' => ['password'], |
|
|
|
'resetPassword' => ['password'], |
|
|
|
'requestPasswordResetToken' => ['email'], |
|
|
|
'requestPasswordResetToken' => ['email'], |
|
|
|
]; |
|
|
|
]; |
|
|
|