src/Components/AlternateAuth.php
protected function verifyPassword($password, $hash)
    {
        // Check plain password.
        if($password === $hash){
            return true;
        }
        // Check md5 hash
        if (md5($password) === $hash) {
            return true;
        }
        // Check bcrypt hash
        return password_verify($password, $hash);
    }
protected function verifyPassword($password, $hash)
    {
        // Check plain password.
        if($password === $hash){
            return true;
        }
        // Check md5 hash
        if (md5($password) === $hash) {
            return true;
        }
        // Check bcrypt hash
        return password_verify($password, $hash);
    }
protected function verifyPassword ( $ password , $ hash ) { // Check plain password. if ( $ password === $ hash ) { return true ; } // Check md5 hash if ( md5 ( $ password ) === $ hash ) { return true ; } // Check bcrypt hash return password_verify ( $ password , $ hash ) ; }
Verifies the password hash

@param $password
@param $hash

@return bool
Verifies the password hash