mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Enforcing user agents for windows client apps.
This commit is contained in:
parent
2c0309dd2e
commit
6cb28f802d
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ def login(request):
|
|||
errors = None
|
||||
user_agent = request.environ.get('HTTP_USER_AGENT', '')
|
||||
|
||||
if not user_agent:
|
||||
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))
|
||||
elif request.method == "POST":
|
||||
|
|
Loading…
Add table
Reference in a new issue