Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jun 23, 2021
1 parent 206e401 commit e2a16f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/Http/Controllers/PasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@ class PasswordController extends Controller
*
* @param \Illuminate\Http\Request $request
* @param \Laravel\Fortify\Contracts\UpdatesUserPasswords $updater
* @return \Illuminate\Http\Response
* @return \Laravel\Fortify\Contracts\PasswordUpdateResponse
*/
public function update(Request $request, UpdatesUserPasswords $updater)
{
$updater->update($request->user(), $request->all());

return $request->wantsJson()
? app(PasswordUpdateResponse::class)
: back()->with('status', 'password-updated');
return app(PasswordUpdateResponse::class);
}
}
2 changes: 1 addition & 1 deletion src/Http/Responses/PasswordUpdateResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ public function toResponse($request)
{
return $request->wantsJson()
? new JsonResponse('', 200)
: redirect()->intended(config('fortify.home'));
: back()->with('status', 'password-updated');
}
}

0 comments on commit e2a16f6

Please sign in to comment.