Auth_Jelly::check_password PHP Method

check_password() public method

Compare password with original (hashed). Works for current (logged in) user
public check_password ( string $password ) : boolean
$password string
return boolean
    public function check_password($password)
    {
        $user = $this->get_user();
        if ($user === FALSE) {
            // nothing to compare
            return FALSE;
        }
        $hash = $this->hash_password($password, $this->find_salt($this->password($user->username)));
        return $hash == $this->password($user->username);
    }