Skip to content

Commit 35c44f3

Browse files
authored
[1.x] Ensures route password.confirm is defined when not using views (#368)
* Ensures route password.confirm is defined when not using views * Removed space messing with styleci * Simplified solution to ensure named password.confirm route
1 parent 0fa359a commit 35c44f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

routes/routes.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,16 @@
109109
// Password Confirmation...
110110
if ($enableViews) {
111111
Route::get('/user/confirm-password', [ConfirmablePasswordController::class, 'show'])
112-
->middleware([config('fortify.auth_middleware', 'auth').':'.config('fortify.guard')])
113-
->name('password.confirm');
112+
->middleware([config('fortify.auth_middleware', 'auth').':'.config('fortify.guard')]);
114113
}
115114

116115
Route::get('/user/confirmed-password-status', [ConfirmedPasswordStatusController::class, 'show'])
117116
->middleware([config('fortify.auth_middleware', 'auth').':'.config('fortify.guard')])
118117
->name('password.confirmation');
119118

120119
Route::post('/user/confirm-password', [ConfirmablePasswordController::class, 'store'])
121-
->middleware([config('fortify.auth_middleware', 'auth').':'.config('fortify.guard')]);
120+
->middleware([config('fortify.auth_middleware', 'auth').':'.config('fortify.guard')])
121+
->name('password.confirm');
122122

123123
// Two Factor Authentication...
124124
if (Features::enabled(Features::twoFactorAuthentication())) {

0 commit comments

Comments
 (0)