This commit is contained in:
Master Jumblespeed 2015-05-18 22:28:54 -04:00
parent d882959bfa
commit 6f93be4677
2 changed files with 3 additions and 3 deletions

View file

@ -10,7 +10,7 @@ password = os.environ['ttsPassword']
accountServerEndpoint = ConfigVariableString(
'account-server-endpoint',
'http://tigercat1.me/tmpremote/api2/').getValue()
'http://tigercat1.me/tmpremote/api/').getValue()
request = requests.post(
accountServerEndpoint + 'login/',
data={'n': username, 'p': password})

View file

@ -30,7 +30,7 @@ if accountDBType == 'remote':
minAccessLevel = simbase.config.GetInt('min-access-level', 100)
accountServerEndpoint = simbase.config.GetString(
'account-server-endpoint', 'http://tigercat1.me/tmpremote/api2/')
'account-server-endpoint', 'http://tigercat1.me/tmpremote/api/')
accountServerSecret = simbase.config.GetString(
'account-server-secret', '9sj6816aj1hs795j')
@ -40,7 +40,7 @@ http.setVerifySsl(0)
def executeHttpRequest(url, **extras):
request = urllib2.Request('http://tigercat1.me/tmpremote/api2/' + url)
request = urllib2.Request('http://tigercat1.me/tmpremote/api/' + url)
timestamp = str(int(time.time()))
signature = hashlib.sha256(timestamp + accountServerSecret + "h*^ahJGHA017JI&A&*uyhU07")
request.add_header('User-Agent', 'TTS-CSM')