mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Removing request info in hopes of speeding up blocking of API requests for bad clients.
This commit is contained in:
parent
f901ab6753
commit
943380c118
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue