🐛 Fix handling of invalid API keys
This commit is contained in:
1 parent
547962f4bc
commit
a296574c70
1 file changed
+1
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user