astrosat / django-astrosat-users

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

allow user name to be specified during registration #139

Closed allynt closed 3 years ago

allynt commented 3 years ago

The "name" field passed to django-astrosat-users by orbis during registration is not being propagated to the RegisterSerializer.

Technically, it shouldn't be since registration is just about providing the username (which is the email address in this case) and password. However, orbis decided to be different b/c... reasons.

This PR adds the "name" field to the RegisterSerializer and updated the save_user adapter method to pass that field to the registered user.

This PR closes #138