Zepi/Web/AccessControl/src/Entity/User.php
public function comparePasswords($password)
    {
        $passwordSalted = $this->saltPassword($password);
        if (password_verify($passwordSalted, $this->privateKey)) {
            return true;
        }
        
        return false;
    }
public function comparePasswords($password)
    {
        $passwordSalted = $this->saltPassword($password);
        if (password_verify($passwordSalted, $this->privateKey)) {
            return true;
        }
        
        return false;
    }
public function comparePasswords ( $ password ) { $ passwordSalted = $ this -> saltPassword ( $ password ) ; if ( password_verify ( $ passwordSalted , $ this -> privateKey ) ) { return true ; } return false ; }
Compares the given password from the login form with
the saved one.

@access public
@param string $password
@return boolean
Compares the given password from the login form with the saved one .