From 5ebee208728520b6bdacaf447e242f5808717813 Mon Sep 17 00:00:00 2001 From: mahdihty Date: Sat, 10 Apr 2021 16:58:16 +0430 Subject: [PATCH] add throttle to resend api --- routes/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/api.php b/routes/api.php index 3aa3897..cd7d50f 100644 --- a/routes/api.php +++ b/routes/api.php @@ -32,7 +32,7 @@ $router->group(['prefix' => 'auth'], function () use ($router) { $router->post('verification', 'AuthController@verification')->name('verification'); - $router->post('resend', 'AuthController@resendLink'); + $router->post('resend', 'AuthController@resendLink')->middleware('throttle:1'); $router->get('google/redirect', 'AuthController@redirectToGoogle')->name('google.redirect'); $router->get('google/callback', 'AuthController@handleGoogleCallback')->name('google.callback');