Update route for captcha

This commit is contained in:
Pig Fang 2018-07-21 08:21:42 +08:00
parent 8bd60624a0
commit 07e5d8b3ec
2 changed files with 1 additions and 6 deletions

View File

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

View File

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