LoginForm class.
LoginForm is the data structure for keeping user login form data. It is used by the 'login' action of 'SiteController'.
package | Default |
---|
attributeLabels()
authenticate(string $attribute,array $params)
This is the 'authenticate' validator as declared in rules().
string
the name of the attribute to be validated.
array
additional parameters passed with rule when being executed.
login(): boolean
boolean
whether login is successful
rules()
The rules state that username and password are required, and password needs to be authenticated.
username :
password :
rememberMe :
_identity :