Add invisible ReCAPTCHA to login and password reset

This commit is contained in:
Jakob Schrettenbrunner
2017-03-31 12:19:44 +02:00
parent f2f834af49
commit 142cbb0641
8 changed files with 184 additions and 4 deletions

View File

@@ -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',
]);
});