Commit fc599fbe by Chif Gergő

Fix error

parent 94671fed
Pipeline #1092 passed with stage
in 1 minute 45 seconds
......@@ -17,8 +17,7 @@ class StatusConsumer(WebsocketConsumer):
# If login message arrives get the auth token from it
# Then subscribe to the channels of the vm's that belongs to the user
def login(self, auth_token):
user_token = event["auth_token"]
token = Token.objects.get(key=user_token)
token = Token.objects.get(key=auth_token)
if token:
self.user = token.user
instances = Instance.objects.filter(created_by=self.user)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment