This commit is contained in:
2026-08-10 19:18:25 +03:00
parent a9923f72ce
commit 7c501d1e9f
35 changed files with 2185 additions and 78 deletions
+8 -4
View File
@@ -35,14 +35,18 @@ Route::middleware('guest')->group(function () {
->name('password.store');
});
// Not session-gated: this link is opened from an email client, which may not
// carry the web session of whichever device/browser registered the account
// (e.g. a user who signed up through the Android app). Identity is proven by
// the signed URL + hash, same as the auth-gated version this replaced.
Route::get('verify-email/{id}/{hash}', VerifyEmailController::class)
->middleware(['signed', 'throttle:6,1'])
->name('verification.verify');
Route::middleware('auth')->group(function () {
Route::get('verify-email', EmailVerificationPromptController::class)
->name('verification.notice');
Route::get('verify-email/{id}/{hash}', VerifyEmailController::class)
->middleware(['signed', 'throttle:6,1'])
->name('verification.verify');
Route::post('email/verification-notification', [EmailVerificationNotificationController::class, 'store'])
->middleware('throttle:6,1')
->name('verification.send');