|
|
@@ -68,12 +68,14 @@ class LoginController extends Controller
|
|
|
}
|
|
|
|
|
|
if ($this->attemptLogin($request)) {
|
|
|
- $this->log(__METHOD__,__FUNCTION__,'',Auth::user()['id']);
|
|
|
+ if(env('DB_USERNAME')!='developer')
|
|
|
+ $this->log(__METHOD__,__FUNCTION__,'',Auth::user()['id']);
|
|
|
return $this->sendLoginResponse($request);
|
|
|
}
|
|
|
|
|
|
$this->incrementLoginAttempts($request);
|
|
|
- $this->log(__METHOD__,__FUNCTION__,'',Auth::user()['id']);
|
|
|
+ if(env('DB_USERNAME')!='developer')
|
|
|
+ $this->log(__METHOD__,__FUNCTION__,'',Auth::user()['id']);
|
|
|
return $this->sendFailedLoginResponse($request);
|
|
|
}
|
|
|
}
|