🐛 Fix handling of invalid API keys

This commit is contained in:
Gina Häußge committed 2019-03-25 11:31:56 +01:00
1 parent 547962f4bc
commit a296574c70
1 file changed
+1 -4
+1 -4
View File
@@ -66,12 +66,9 @@ def loginUserFromApiKey():
if not apikey:
return False
if octoprint.server.appSessionManager.validate(apikey):
return False
user = get_user_for_apikey(apikey)
if user is None:
return False
raise InvalidApiKeyException()
if not loginUser(user):
return False