class StoppedAuthenticationException extends \Exception implements Responsable
{
-
protected $user;
protected $loginService;
if ($request->wantsJson()) {
return response()->json([
'error' => [
- 'code' => 401,
+ 'code' => 401,
'message' => trans('errors.email_confirmation_awaiting'),
],
], 401);
}
- if (session()->get('sent-email-confirmation') === true) {
+ if (session()->pull('sent-email-confirmation') === true) {
return redirect('/register/confirm');
}
return redirect('/register/confirm/awaiting');
}
-}
\ No newline at end of file
+}