ergodnc icon indicating copy to clipboard operation
ergodnc copied to clipboard

Email verification

Open kingdomac opened this issue 4 years ago • 1 comments

Should the User model implements MustVerifyEmail to ensure email verification?

kingdomac avatar Oct 13 '21 17:10 kingdomac

@kingdomac yes it can do but you will need to adjust the redirectTo method in your Authenticate middleware:

protected function redirectTo($request)
    {
        if (! $request->expectsJson()) {
            return url(env('FRONTEND_URL') . '/login');
        }
    }

I have added a PR for this change https://github.com/themsaid/ergodnc/pull/36

garethredfern avatar Feb 17 '22 10:02 garethredfern