fix: rewrite OAuth login controller (#2014)

This commit is contained in:
Alexis Saettler
2018-11-11 14:45:41 +01:00
committed by GitHub
parent 364bcc0c43
commit 566b0b1348
17 changed files with 218 additions and 266 deletions
@@ -39,7 +39,7 @@ class IntroductionsController extends Controller
Contact::where('account_id', auth()->user()->account_id)
->findOrFail($request->get('metThroughId'));
} catch (ModelNotFoundException $e) {
return $this->handleModelNotFound($e);
return $this->respondNotFound();
}
$contact->first_met_through_contact_id = $request->get('metThroughId');