Fix validating captcha

This commit is contained in:
Pig Fang 2019-03-27 11:11:09 +08:00
parent a5d2659d98
commit c01e362ae0

View File

@ -176,7 +176,7 @@ class AuthController extends Controller
public function handleForgot(Request $request)
{
$this->validate($request, [
'captcha' => 'required'.(app()->environment('testing') ? '' : '|captcha'),
'captcha' => ['required', new Captcha],
]);
if (! config('mail.driver')) {