gpt4 book ai didi

python - 如何将多个身份验证 ID(例如密码和电子邮件)传递给 "webApp2_extras"用户模型的 user_create 方法?

转载 作者:太空宇宙 更新时间:2023-11-03 21:21:44 25 4
gpt4 key购买 nike

def create_user(cls, auth_id, unique_properties=None, **user_values):
"""Creates a new user.

:param auth_id:
A string that is unique to the user. Users may have multiple
auth ids. Example auth ids:

- own:username
- own:email@example.com
- google:username
- yahoo:username

当我只想通过多个身份验证 ID 时,请帮助解释我做错了什么

最佳答案

创建用户后,您可以使用User.add_auth_id(auth_id)函数添加其他身份验证ID。

关于python - 如何将多个身份验证 ID(例如密码和电子邮件)传递给 "webApp2_extras"用户模型的 user_create 方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54183110/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com