Commit 1269c7dd by liangyan10

SSO--login的新方法定义

parent 416a7e42
......@@ -25,10 +25,10 @@ class SSOLogin():
return res['data']['token']
def new_ssologin(self,indata,getToken=True):
encrypted_password = self._sso_pwd_encrypted(indata['password'])
indata['password'] = encrypted_password
encrypted_password = self._sso_pwd_encrypted(indata['reqData']['password'])
indata['reqData']['password'] = encrypted_password
# 登录
res = requests.post(SafeTransportationConfig.sso_url, json=indata)
res = requests.post(SSOConfig.sso_url, json=indata["reqData"])
if getToken:
token = res.json()['data']['token']
return token
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment