Skip to content
Permalink
Browse files

fix call

  • Loading branch information...
taylorotwell committed Oct 23, 2019
1 parent 93eb836 commit 331c354e586a5a27a9edc9b9a49d23aa872e4b32
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/Illuminate/Auth/Middleware/RequirePassword.php
@@ -47,7 +47,9 @@ public function handle($request, Closure $next, $redirectToRoute = null)
{
if ($this->shouldConfirmPassword($request)) {
if ($request->expectsJson()) {
abort(423, 'Password confirmation required.');
return $this->responseFactory->json([
'message' => 'Password confirmation required.'
], 423);
}
return $this->responseFactory->redirectGuest(

0 comments on commit 331c354

Please sign in to comment.
You can’t perform that action at this time.