AdminUser::validatePassword PHP Method

validatePassword() public method

Checks if the given password is correct.
public validatePassword ( $password ) : boolean
return boolean whether the password is valid
    public function validatePassword($password)
    {
        if (crypt($password, $this->password) === $this->password) {
            return true;
        } elseif (crypt($password, $this->password) === $this->hashPassword($password)) {
            return true;
        }
    }