ergodnc
ergodnc copied to clipboard
Email verification
Should the User model implements MustVerifyEmail to ensure email verification?
@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