Skip to content

Commit

Permalink
Restore connection check to /user
Browse files Browse the repository at this point in the history
Ref #292
  • Loading branch information
algorys committed Mar 27, 2018
1 parent c5e2b56 commit 9966eea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alignak_app/backend/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def login(self, username=None, password=None, proxies=None, check=False):

# Make backend connected to test token
self.connected = True
connection_test = self.get('realm', {'projection': json.dumps({'name': 1})})
connection_test = self.get('user', {'projection': json.dumps({'name': 1})})

self.connected = bool(connection_test)
if not check:
Expand Down

0 comments on commit 9966eea

Please sign in to comment.