Skip to content

Commit 3b4ab9f

Browse files
authored
Merge pull request #15 from Yahav/patch-3
Throttling the email resend form to avoid abuse of mail service.
2 parents cd76f2f + 6e566db commit 3b4ab9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/routes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
// Verification
66
Route::get('register/verify', 'App\Http\Controllers\Auth\RegisterController@verify')->name('verifyEmailLink');
77
Route::get('register/verify/resend', 'App\Http\Controllers\Auth\RegisterController@showResendVerificationEmailForm')->name('showResendVerificationEmailForm');
8-
Route::post('register/verify/resend', 'App\Http\Controllers\Auth\RegisterController@resendVerificationEmail')->name('resendVerificationEmail');
8+
Route::post('register/verify/resend', 'App\Http\Controllers\Auth\RegisterController@resendVerificationEmail')->name('resendVerificationEmail')->middleware('throttle:2,1');
99

1010
});

0 commit comments

Comments
 (0)