Removing wrong closure

This commit is contained in:
Fabian Stamm 2018-09-23 13:05:29 +02:00
parent 1b00616676
commit 3a19ba5fa7
1 changed files with 7 additions and 7 deletions

View File

@ -23,10 +23,10 @@ class Auth(BaseAuth):
id = self.configuration.get("auth", "client_id")
secret = self.configuration.get("auth", "client_secret")
password = hashlib.sha512(salt + password.encode()).hexdigest())
password = hashlib.sha512(salt + password.encode()).hexdigest()
res2 = requests.post("/api/internel/password", params={
"client_id": id, "client_secret": secret}, json={"uid": user, "password": password})
data2=res2.json();
data2 = res2.json()
if "success" in data2 and data["success"] is True:
return True