mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 04:02:40 -06:00
fixes
This commit is contained in:
parent
d882959bfa
commit
6f93be4677
2 changed files with 3 additions and 3 deletions
|
@ -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})
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue