/**
  * Check whether the given code is correct.
  */
 public function check(Request $request)
 {
     $result = $this->securimage->checkOnly($request->captcha);
     return ['valid' => $result];
 }