Update route for captcha
This commit is contained in:
parent
8bd60624a0
commit
07e5d8b3ec
|
|
@ -187,11 +187,6 @@ class AuthController extends Controller
|
|||
return json(trans('auth.reset.success'), 0);
|
||||
}
|
||||
|
||||
public function captcha()
|
||||
{
|
||||
return captcha();
|
||||
}
|
||||
|
||||
protected function checkCaptcha($request)
|
||||
{
|
||||
return (strtolower($request->input('captcha')) == strtolower(session('phrase')));
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ Route::group(['prefix' => 'auth'], function ()
|
|||
});
|
||||
|
||||
Route::any('/logout', 'AuthController@logout');
|
||||
Route::any('/captcha', 'AuthController@captcha');
|
||||
Route::any('/captcha', '\Mews\Captcha\CaptchaController@getCaptcha');
|
||||
|
||||
Route::post('/login', 'AuthController@handleLogin');
|
||||
Route::post('/register', 'AuthController@handleRegister');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user