Also change salt function to new API
This commit is contained in:
parent
ee05110963
commit
31b23d80ed
@ -13,7 +13,7 @@ class Auth(BaseAuth):
|
|||||||
if user is None:
|
if user is None:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
res1 = requests.post(self.get_server() + "/api/login?uid=" + user)
|
res1 = requests.post(self.get_server() + "/api/login?type=username&uid=" + user)
|
||||||
data1 = res1.json()
|
data1 = res1.json()
|
||||||
|
|
||||||
if "error" in data1:
|
if "error" in data1:
|
||||||
|
Loading…
Reference in New Issue
Block a user