简体   繁体   中英

How to pass multiple auth ids e.g password and email, to the user_create method of the "webApp2_extras" user model?

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

Please help explain what I am doing wrong when I just want to pass multiple authentication IDs

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM