Fixed apps rules
This commit is contained in:
parent
3708ef51ac
commit
c2b27b7364
@ -25,9 +25,9 @@ class ContactForm extends Model
|
|||||||
// name, email, subject and body are required
|
// name, email, subject and body are required
|
||||||
[['name', 'email', 'subject', 'body'], 'required'],
|
[['name', 'email', 'subject', 'body'], 'required'],
|
||||||
// email has to be a valid email address
|
// email has to be a valid email address
|
||||||
[['email'], 'email'],
|
['email', 'email'],
|
||||||
// verifyCode needs to be entered correctly
|
// verifyCode needs to be entered correctly
|
||||||
[['verifyCode'], 'captcha'],
|
['verifyCode', 'captcha'],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,9 +23,9 @@ class LoginForm extends Model
|
|||||||
// 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'],
|
||||||
// rememberMe must be a boolean value
|
// rememberMe must be a boolean value
|
||||||
[['rememberMe'], 'boolean'],
|
['rememberMe', 'boolean'],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user