Class humhub\modules\user\components\CheckPasswordValidator

Inheritancehumhub\modules\user\components\CheckPasswordValidator » yii\validators\Validator

CheckPasswordValidator checks password of currently logged in user.

Property Details

$user public property

The user

Method Details

hasPassword() public static method

Checks if current user has a password set.

public static boolean hasPassword ( humhub\modules\user\models\User $user null )
$user humhub\modules\user\components\User

The user or null for current

validateAttribute() public method

public void validateAttribute ( $object, $attribute )
$object
$attribute