From aa99dab28d6f30f40b4de976e3f7ead00d153a09 Mon Sep 17 00:00:00 2001 From: Alexander Date: Sat, 8 Aug 2015 22:14:29 -0400 Subject: [PATCH] Avoid using the account-bridge on prod. --- toontown/uberdog/ClientServicesManagerUD.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/toontown/uberdog/ClientServicesManagerUD.py b/toontown/uberdog/ClientServicesManagerUD.py index 462b59d2..680a2bf7 100755 --- a/toontown/uberdog/ClientServicesManagerUD.py +++ b/toontown/uberdog/ClientServicesManagerUD.py @@ -254,7 +254,24 @@ class RemoteAccountDB(AccountDB): callback(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 ---