astrosat / django-astrosat-users

Common backend library for Astrosat projects' user management
GNU General Public License v3.0
2 stars 0 forks source link

feat(backend): force accepted_terms to be false for new CustomerUsers #129

Closed allynt closed 3 years ago

allynt commented 3 years ago

Gets around the problem of requiring accepted_terms to be True in order for registration to work, but needing it to be False in order to require users created via an invitation to a customer to explicitly accept_terms when logging in.

Did this by setting it to True when validating the RegistrationSerializer and then immediately setting it to False before saving the RegistrationSerializer.