Fixed apps rules

This commit is contained in:
slavcodev
2013-11-13 11:41:25 +02:00
parent 2adcd16e0d
commit f57b3536a2
5 changed files with 18 additions and 18 deletions

View File

@@ -25,9 +25,9 @@ class ContactForm extends Model
// name, email, subject and body are required
[['name', 'email', 'subject', 'body'], 'required'],
// email has to be a valid email address
[['email'], 'email'],
['email', 'email'],
// verifyCode needs to be entered correctly
[['verifyCode'], 'captcha'],
['verifyCode', 'captcha'],
];
}

View File

@@ -23,9 +23,9 @@ class LoginForm extends Model
// username and password are both required
[['username', 'password'], 'required'],
// password is validated by validatePassword()
[['password'], 'validatePassword'],
['password', 'validatePassword'],
// rememberMe must be a boolean value
[['rememberMe'], 'boolean'],
['rememberMe', 'boolean'],
];
}