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?
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_usercomes aftersocial.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_URLsetting. The form submits tocomplete/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_passwordfunction 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, sincecreate_usercomes after it, there is no user, so for new users, theuserkeyword isNone, which means there is noset_passwordfor it.What's the standard way of doing this?