PHP Class skeeks\cms\models\forms\PasswordChangeForm

Inheritance: extends yii\base\Model
Show file Open project: skeeks-cms/cms Class Usage Examples

Public Properties

Property Type Description
$new_password string
$new_password_confirm
$user skeeks\cms\models\User

Public Methods

Method Description
attributeLabels ( )
changePassword ( ) : boolean Logs in a user using the provided username and password.
rules ( )
scenarios ( )
validateNewPassword ( string $attribute, array $params ) Validates the password.

Method Details

attributeLabels() public method

public attributeLabels ( )

changePassword() public method

Logs in a user using the provided username and password.
public changePassword ( ) : boolean
return boolean whether the user is logged in successfully

rules() public method

public rules ( )

scenarios() public method

public scenarios ( )

validateNewPassword() public method

This method serves as the inline validation for password.
public validateNewPassword ( string $attribute, array $params )
$attribute string the attribute currently being validated
$params array the additional name-value pairs given in the rule

Property Details

$new_password public property

public string $new_password
return string

$new_password_confirm public property

public $new_password_confirm

$user public property

public User,skeeks\cms\models $user
return skeeks\cms\models\User