|
77 | 77 | if (Features::enabled(Features::emailVerification())) {
|
78 | 78 | if ($enableViews) {
|
79 | 79 | Route::get('/email/verify', [EmailVerificationPromptController::class, '__invoke'])
|
80 |
| - ->middleware(['auth']) |
| 80 | + ->middleware(['auth:'.config('fortify.guard')]) |
81 | 81 | ->name('verification.notice');
|
82 | 82 | }
|
83 | 83 |
|
84 | 84 | Route::get('/email/verify/{id}/{hash}', [VerifyEmailController::class, '__invoke'])
|
85 |
| - ->middleware(['auth', 'signed', 'throttle:6,1']) |
| 85 | + ->middleware(['auth:'.config('fortify.guard'), 'signed', 'throttle:6,1']) |
86 | 86 | ->name('verification.verify');
|
87 | 87 |
|
88 | 88 | Route::post('/email/verification-notification', [EmailVerificationNotificationController::class, 'store'])
|
89 |
| - ->middleware(['auth', 'throttle:6,1']) |
| 89 | + ->middleware(['auth:'.config('fortify.guard'), 'throttle:6,1']) |
90 | 90 | ->name('verification.send');
|
91 | 91 | }
|
92 | 92 |
|
93 | 93 | // Profile Information...
|
94 | 94 | if (Features::enabled(Features::updateProfileInformation())) {
|
95 | 95 | Route::put('/user/profile-information', [ProfileInformationController::class, 'update'])
|
96 |
| - ->middleware(['auth']) |
| 96 | + ->middleware(['auth:'.config('fortify.guard')]) |
97 | 97 | ->name('user-profile-information.update');
|
98 | 98 | }
|
99 | 99 |
|
100 | 100 | // Passwords...
|
101 | 101 | if (Features::enabled(Features::updatePasswords())) {
|
102 | 102 | Route::put('/user/password', [PasswordController::class, 'update'])
|
103 |
| - ->middleware(['auth']) |
| 103 | + ->middleware(['auth:'.config('fortify.guard')]) |
104 | 104 | ->name('user-password.update');
|
105 | 105 | }
|
106 | 106 |
|
107 | 107 | // Password Confirmation...
|
108 | 108 | if ($enableViews) {
|
109 | 109 | Route::get('/user/confirm-password', [ConfirmablePasswordController::class, 'show'])
|
110 |
| - ->middleware(['auth']) |
| 110 | + ->middleware(['auth:'.config('fortify.guard')]) |
111 | 111 | ->name('password.confirm');
|
112 | 112 | }
|
113 | 113 |
|
114 | 114 | Route::get('/user/confirmed-password-status', [ConfirmedPasswordStatusController::class, 'show'])
|
115 |
| - ->middleware(['auth']) |
| 115 | + ->middleware(['auth:'.config('fortify.guard')]) |
116 | 116 | ->name('password.confirmation');
|
117 | 117 |
|
118 | 118 | Route::post('/user/confirm-password', [ConfirmablePasswordController::class, 'store'])
|
119 |
| - ->middleware(['auth']); |
| 119 | + ->middleware(['auth:'.config('fortify.guard')]); |
120 | 120 |
|
121 | 121 | // Two Factor Authentication...
|
122 | 122 | if (Features::enabled(Features::twoFactorAuthentication())) {
|
|
133 | 133 | ]));
|
134 | 134 |
|
135 | 135 | $twoFactorMiddleware = Features::optionEnabled(Features::twoFactorAuthentication(), 'confirmPassword')
|
136 |
| - ? ['auth', 'password.confirm'] |
137 |
| - : ['auth']; |
| 136 | + ? ['auth:'.config('fortify.guard'), 'password.confirm'] |
| 137 | + : ['auth:'.config('fortify.guard')]; |
138 | 138 |
|
139 | 139 | Route::post('/user/two-factor-authentication', [TwoFactorAuthenticationController::class, 'store'])
|
140 | 140 | ->middleware($twoFactorMiddleware)
|
|
0 commit comments