\common\modelsLoginForm

Login form

Summary

Methods
Properties
Constants
rules()
validatePassword()
login()
$username
$password
$rememberMe
No constants found
getUser()
No protected properties found
N/A
No private methods found
$_user
N/A

Properties

$username

$username : 

Type

$password

$password : 

Type

$rememberMe

$rememberMe : 

Type

$_user

$_user : 

Type

Methods

rules()

rules() 

{@inheritdoc}

validatePassword()

validatePassword(string  $attribute, array  $params) 

Validates the password.

This method serves as the inline validation for password.

Parameters

string $attribute

the attribute currently being validated

array $params

the additional name-value pairs given in the rule

login()

login() : boolean

Logs in a user using the provided username and password.

Returns

boolean —

whether the user is logged in successfully

getUser()

getUser() : \common\models\User|null

Finds user by [[username]]

Returns

\common\models\User|null