Fixing typo in URL

This commit is contained in:
Fabian Stamm 2018-11-06 20:34:32 +00:00
parent 31b23d80ed
commit 4d29cfd9ba

View File

@ -24,7 +24,7 @@ class Auth(BaseAuth):
id = self.configuration.get("auth", "client_id") id = self.configuration.get("auth", "client_id")
secret = self.configuration.get("auth", "client_secret") secret = self.configuration.get("auth", "client_secret")
password = hashlib.sha512(salt + password.encode()).hexdigest() password = hashlib.sha512(salt + password.encode()).hexdigest()
res2 = requests.post(self.get_server() + "/api/internel/password", params={ res2 = requests.post(self.get_server() + "/api/internal/password", params={
"client_id": id, "client_secret": secret}, json={"uid": user, "password": password}) "client_id": id, "client_secret": secret}, json={"uid": user, "password": password})
data2 = res2.json() data2 = res2.json()