Removing request info in hopes of speeding up blocking of API requests for bad clients.

This commit is contained in:
Samuel Clay 2013-06-16 09:26:25 -07:00
parent f901ab6753
commit 943380c118

View file

@ -27,7 +27,7 @@ def login(request):
if not user_agent or user_agent.lower() in ['nativehost']:
errors = dict(user_agent="You must set a user agent to login.")
logging.user(request, "~FG~BB~SK~FRBlocked ~FGAPI Login (%s)~SN~FW: %s" % (request.REQUEST.get('username', ''), user_agent))
logging.user(request, "~FG~BB~SK~FRBlocked ~FGAPI Login~SN~FW: %s" % (user_agent))
elif request.method == "POST":
form = LoginForm(data=request.POST)
if form.errors: