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.
Prevent "stringification" of nested JSON in invalid login responses by no longer adding
UserSerializerLite
content into theValidationError
message automatically returned by theLoginSerializer
. Instead, instead manually create an error response in theLoginView
which may or may not includeUserSerializerLite
content depending on how far validation got in theLoginSerializer
.Closes #100