security/UserPasswordHistoryTrait.php
public function checkPasswordNotUsed($attribute, $params, $validator)
    {
        $class = $this->passwordHistoryClass;
        $result = $class::isUsed($this->_password, $this);
        if ($result != false) {
            $this->trigger(static::$eventPasswordUsed);
            $this->addError($attribute, $this->passwordUsedMessage);
        }
    }
public function checkPasswordNotUsed($attribute, $params, $validator)
    {
        $class = $this->passwordHistoryClass;
        $result = $class::isUsed($this->_password, $this);
        if ($result != false) {
            $this->trigger(static::$eventPasswordUsed);
            $this->addError($attribute, $this->passwordUsedMessage);
        }
    }
public function checkPasswordNotUsed ( $ attribute , $ params , $ validator ) { $ class = $ this -> passwordHistoryClass ; $ result = $ class :: isUsed ( $ this -> _password , $ this ) ; if ( $ result != false ) { $ this -> trigger ( static :: $ eventPasswordUsed ) ; $ this -> addError ( $ attribute , $ this -> passwordUsedMessage ) ; } }
This method is only used for password hash attribute validation.
If password is used, the `eventPasswordUsed` event will be triggered.

@param string $attribute
@param mixed $params
@param type $validator
This method is only used for password hash attribute validation . If password is used the eventPasswordUsed event will be triggered .