close #326 fix rule for the user auth_tf_enabled field

This commit is contained in:
tonydspaniard
2019-06-28 23:45:49 +02:00
parent 019660d4f6
commit fc326d0a61
2 changed files with 7 additions and 3 deletions

View File

@ -248,7 +248,7 @@ class User extends ActiveRecord implements IdentityInterface
// two factor auth rules
'twoFactorSecretTrim' => ['auth_tf_key', 'trim'],
'twoFactorSecretLength' => ['auth_tf_key', 'string', 'max' => 16],
'twoFactorEnabledNumber' => ['auth_tf_enabled', 'integer']
'twoFactorEnabledNumber' => ['auth_tf_enabled', 'boolean']
];
}