astrosat / django-astrosat-users

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

fix(backend): return correct data for invalid logins #101

Closed allynt closed 4 years ago

allynt commented 4 years ago

Prevent "stringification" of nested JSON in invalid login responses by no longer adding UserSerializerLite content into the ValidationError message automatically returned by the LoginSerializer. Instead, instead manually create an error response in the LoginView which may or may not include UserSerializerLite content depending on how far validation got in the LoginSerializer.

Closes #100