Fix server error 500 when user is logged out
f98ebaaf moved the passive_logon code to a new function from
api/__init__.py to util/flask.py. Before that move any fallthrough
would hit return NO_CONTENT, but now it returns nothing which makes
flask complain.
This commit is contained in:
1 parent
c5484fe139
commit
e8f61e2dda
1 file changed
+3
-1
@@ -58,6 +58,8 @@ def passive_login():
|
||||
logger = logging.getLogger(__name__)
|
||||
logger.exception("Could not autologin user %s for networks %r" % (autologinAs, localNetworks))
|
||||
|
||||
return ("", 204)
|
||||
|
||||
|
||||
#~~ cache decorator for cacheable views
|
||||
|
||||
@@ -303,4 +305,4 @@ def get_json_command_from_request(request, valid_commands):
|
||||
if not parameter in data:
|
||||
return None, None, make_response("Mandatory parameter %s missing for command %s" % (parameter, command), 400)
|
||||
|
||||
return command, data, None
|
||||
return command, data, None
|
||||
Reference in new issue
Block a user