Skip to content

Commit 4c053fc

Browse files
author
sartrezhang
committed
rename field
1 parent 7140bc9 commit 4c053fc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

oneid_auth/jws.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,11 @@ def __new_token(self, user_info):
150150
151151
:parameter user 免登用户的信息
152152
:parameter app 免登应用的唯一标识
153+
:parameter params 表示自定义的key/value键值对(以query param的方式追加到免登链接之后)
153154
:returns 免登链接
154155
:raise Exception
155156
"""
156-
def new_login_url(self, user_info, app, params=None):
157+
def new_login_url(self, user, app, params=None):
157158
# 获取url部分
158159
if check_invalid_string(app):
159160
raise ValueError("invalid app")
@@ -166,7 +167,7 @@ def new_login_url(self, user_info, app, params=None):
166167
parsed_url = urlparse(base_url)
167168
query_params = dict(parse_qsl(parsed_url.query))
168169
# 获取参数部分
169-
token = self.__new_token(user_info)
170+
token = self.__new_token(user)
170171
query_params[self.token_key] = token
171172
if params is not None:
172173
if not isinstance(params, dict):

0 commit comments

Comments
 (0)