mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
Avoid using the account-bridge on prod.
This commit is contained in:
parent
f6e34fd8a5
commit
aa99dab28d
1 changed files with 18 additions and 1 deletions
|
@ -254,7 +254,24 @@ class RemoteAccountDB(AccountDB):
|
||||||
callback(resp)
|
callback(resp)
|
||||||
return resp
|
return resp
|
||||||
|
|
||||||
return AccountDB.lookup(self, token, callback)
|
return self.lookup_account(token, callback)
|
||||||
|
|
||||||
|
def lookup_account(self, data, callback):
|
||||||
|
userId = data['userId']
|
||||||
|
|
||||||
|
data['success'] = True
|
||||||
|
data['accessLevel'] = max(data['accessLevel'], minAccessLevel)
|
||||||
|
|
||||||
|
data['accountId'] = int(data['accountId'])
|
||||||
|
|
||||||
|
callback(data)
|
||||||
|
return data
|
||||||
|
|
||||||
|
def storeAccountID(self, userId, accountId, callback):
|
||||||
|
r = executeHttpRequest('associateUser', username=str(userId), accountId=str(accountId))
|
||||||
|
if r:
|
||||||
|
return 'SUCCESS'
|
||||||
|
return 'FAILURE'
|
||||||
|
|
||||||
|
|
||||||
# --- FSMs ---
|
# --- FSMs ---
|
||||||
|
|
Loading…
Reference in a new issue