Class humhub\modules\user\models\Password

Inheritancehumhub\modules\user\models\Password » yii\db\ActiveRecord

This is the model class for table "user_password".

Property Details

$currentPassword public property
public $currentPassword null
$defaultAlgorithm public property
public $defaultAlgorithm ''
$newPassword public property
public $newPassword null
$newPasswordConfirm public property
public $newPasswordConfirm null

Method Details

attributeLabels() public method

public void attributeLabels ( )
beforeSave() public method

public void beforeSave ( $insert )
getUser() public method

public void getUser ( )
init() public method

public void init ( )
rules() public method

public void rules ( )
scenarios() public method

public void scenarios ( )
setPassword() public method

Sets an password and hash it

public void setPassword ( $newPassword )
tableName() public static method

public static void tableName ( )
unequalsCurrentPassword() public method

The new password has to be unequal to the current password.

public void unequalsCurrentPassword ( $attribute, $params )
$attribute \humhub\modules\user\models\type
$params \humhub\modules\user\models\type
validatePassword() public method

Validates a given password against database record

public boolean validatePassword ( $password )
$password string


return boolean