Skip to content

Commit e2a16f6

Browse files
committed
formatting
1 parent 206e401 commit e2a16f6

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/Http/Controllers/PasswordController.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@ class PasswordController extends Controller
1414
*
1515
* @param \Illuminate\Http\Request $request
1616
* @param \Laravel\Fortify\Contracts\UpdatesUserPasswords $updater
17-
* @return \Illuminate\Http\Response
17+
* @return \Laravel\Fortify\Contracts\PasswordUpdateResponse
1818
*/
1919
public function update(Request $request, UpdatesUserPasswords $updater)
2020
{
2121
$updater->update($request->user(), $request->all());
2222

23-
return $request->wantsJson()
24-
? app(PasswordUpdateResponse::class)
25-
: back()->with('status', 'password-updated');
23+
return app(PasswordUpdateResponse::class);
2624
}
2725
}

src/Http/Responses/PasswordUpdateResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ public function toResponse($request)
1717
{
1818
return $request->wantsJson()
1919
? new JsonResponse('', 200)
20-
: redirect()->intended(config('fortify.home'));
20+
: back()->with('status', 'password-updated');
2121
}
2222
}

0 commit comments

Comments
 (0)