I have two Registration pages: Register as Buyer, Register as Seller.
on both Pages , I've included Normal Registration and social authentication using Google and Facebook.
I've added social authentication using Django all-auth, but cannot get user_role.
[1][Registration Page]:
- after Registration : user is redirected to home page and as there is no user_role set in social authentication , one cannot access Buyer or Seller 's section.
[2][Signup with Google]: After signup : User is registered as Blank Login.
- check home page after Google signup:
MY TASK : Is to assign user_type on both the buttons: Buyer and Seller. on click button redirect user to its particular Registration Page and Login/Signup with Social Authentication and after Successful-Login Redirect User to its Page and show user_type in Django-administration-panel as:
User_type | Email | is_active
Buyer | test@gmail.com | True
Seller | demo@gmail.com | False