Browse Source

Fixes #1633: fixed scenarios for User model in advanced application allowing setting default values for User model

tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
8e013aacd0
  1. 2
      apps/advanced/common/models/User.php

2
apps/advanced/common/models/User.php

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

Loading…
Cancel
Save