mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 14:53:45 +02:00
Add invisible ReCAPTCHA to login and password reset
This commit is contained in:
@@ -55,6 +55,7 @@ class AuthRoutes
|
||||
// Handle Login
|
||||
$router->post('login', [
|
||||
'uses' => 'Auth\LoginController@login',
|
||||
'middleware' => 'recaptcha',
|
||||
]);
|
||||
|
||||
$router->get('login/totp', [
|
||||
@@ -75,6 +76,7 @@ class AuthRoutes
|
||||
// Handle Password Reset
|
||||
$router->post('password', [
|
||||
'uses' => 'Auth\ForgotPasswordController@sendResetLinkEmail',
|
||||
'middleware' => 'recaptcha',
|
||||
]);
|
||||
|
||||
// Show Verification Checkpoint
|
||||
@@ -87,6 +89,7 @@ class AuthRoutes
|
||||
$router->post('password/reset', [
|
||||
'as' => 'auth.reset.post',
|
||||
'uses' => 'Auth\ResetPasswordController@reset',
|
||||
'middleware' => 'recaptcha',
|
||||
]);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user