Commit 8e013aac by Alexander Makarov

Fixes #1633: fixed scenarios for User model in advanced application allowing…

Fixes #1633: fixed scenarios for User model in advanced application allowing setting default values for User model
parent 33d18c47
...@@ -128,7 +128,7 @@ class User extends ActiveRecord implements IdentityInterface ...@@ -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'],
]; ];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment