Fixed a test left-over
Thanks for the heads-up @kevans91
This commit is contained in:
parent
4958353335
commit
814b02900b
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ def loginFromApiKeyRequestHandler():
|
|||
|
||||
if apikey and apikey != octoprint.server.UI_API_KEY and not octoprint.server.appSessionManager.validate(apikey):
|
||||
user = get_user_for_apikey(apikey)
|
||||
if user is not None and not user.is_anonymous() and flask_login.login_user(user, remember=False):
|
||||
if user is not None and not user.is_anonymous and flask_login.login_user(user, remember=False):
|
||||
flask_principal.identity_changed.send(_flask.current_app._get_current_object(),
|
||||
identity=flask_principal.Identity(user.get_id()))
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue