Skip to content

EmailAuth pipeline - saving password #222

@sid24ss

Description

@sid24ss

Okay, I'm a little confused.

I don't want to create a user unless they have validated the email. So my social.pipeline.user.create_user comes after social.pipeline.mail.mail_validation.

I have a custom form for users to sign up with, so I'm setting only the SOCIAL_AUTH_EMAIL_FORM_URL setting. The form submits to complete/email, and that is how the whole pipeline starts. I take all the details (name, email and password) in this form itself.

So now, where should the save_password function go in the pipeline?

If it goes after mail_validation, the issue is that the password is not set in the session.

If it goes before mail_validation, since create_user comes after it, there is no user, so for new users, the user keyword is None, which means there is no set_password for it.

What's the standard way of doing this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions