/** * POST Login the user. * * POST (:orchestra)/login * * @return mixed */ public function login(Request $request, AuthenticateUser $authenticate, ThrottlesCommand $throttles) { $input = $request->only(['email', 'password', 'remember']); $throttles->setRequest($request)->setLoginKey('email'); return $authenticate->login($this, $input, $throttles); }
/** * POST Login the user. * * POST (:orchestra)/login * * @return mixed */ public function login(Request $request, AuthenticateUser $authenticate, ThrottlesCommand $throttles) { $input = $request->all(); $input['_ip'] = $request->ip(); return $authenticate->login($this, $input, $throttles); }