LoginForm

Extends\CFormModel

LoginForm class.

LoginForm is the data structure for keeping user login form data. It is used by the 'login' action of 'SiteController'.

package

Default

Methods

Declares attribute labels.

attributeLabels()

Authenticates the password.

authenticate(string $attribute,array $params)

This is the 'authenticate' validator as declared in rules().

Arguments

$attribute

string

the name of the attribute to be validated.

$params

array

additional parameters passed with rule when being executed.

Declares the validation rules.

rules()

The rules state that username and password are required, and password needs to be authenticated.

Properties

username

username :

Type(s)

password

password :

Type(s)

rememberMe

rememberMe :

Type(s)

_identity

_identity :

Type(s)