feat: resend email
# Conflicts: # app/Http/Controllers/AuthController.php # lang/en/api.php # lang/fr/api.php # tests/Feature/EmailVerificationTest.php
This commit is contained in:
+3
-3
@@ -16,13 +16,13 @@ Route::prefix('auth')->group(function (): void {
|
||||
Route::get('email/verify/{id}/{hash}', [AuthController::class, 'verifyEmail'])
|
||||
->middleware(['signed', 'throttle:6,1'])
|
||||
->name('verification.verify');
|
||||
Route::post('email/verification-notification', [AuthController::class, 'sendVerificationEmail'])
|
||||
->middleware('throttle:6,1')
|
||||
->name('verification.send');
|
||||
|
||||
Route::middleware('auth:sanctum')->group(function (): void {
|
||||
Route::post('logout', [AuthController::class, 'logout']);
|
||||
Route::get('me', [AuthController::class, 'me']);
|
||||
Route::post('email/verification-notification', [AuthController::class, 'sendVerificationEmail'])
|
||||
->middleware('throttle:6,1')
|
||||
->name('verification.send');
|
||||
Route::patch('me', [AuthController::class, 'update'])->middleware('verified');
|
||||
Route::delete('me', [AuthController::class, 'destroy']);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user