[Fixed]-Django All-Auth Role Based Signup

1πŸ‘

@pennersr was kind enough to answer this on the allauth github page:

This truly all depends on how you model things, there is nothing in
allauth that blocks you from implementing the above.

One way of looking at things is that the signup form is not different
at all. It merely contains an additional switch that indicates the
type of user account that is to be created. Then, it is merely a
matter of visualizing things properly, if you select type=employer,
then show a different set of fields compared to signing up using
type=developer.

If you don’t want such a switch in your form, then you can store the
type of account being created somewhere in the session, and refer to
that when populating the account.

πŸ‘€Ed Campion

Leave a comment