|
|
@ -20,7 +20,7 @@ class LoginForm extends Model |
|
|
|
{ |
|
|
|
{ |
|
|
|
return [ |
|
|
|
return [ |
|
|
|
// username and password are both required |
|
|
|
// username and password are both required |
|
|
|
['username, password', 'required'], |
|
|
|
[['username', 'password'], 'required'], |
|
|
|
// password is validated by validatePassword() |
|
|
|
// password is validated by validatePassword() |
|
|
|
['password', 'validatePassword'], |
|
|
|
['password', 'validatePassword'], |
|
|
|
]; |
|
|
|
]; |
|
|
|