Tivix / django-rest-auth

This app makes it extremely easy to build Django powered SPA's (Single Page App) or Mobile apps exposing all registration and authentication related functionality as CBV's (Class Base View) and REST (JSON)
www.tivix.com
MIT License
2.41k stars 661 forks source link

The following line is not user-email-field agnostic. #624

Open RyanFleck opened 4 years ago

RyanFleck commented 4 years ago

I'd be happy to put in a PR to fix this issue, but I noticed that this line in the library requires the entire validate method to be overridden if the user model has a custom email field.

https://github.com/Tivix/django-rest-auth/blob/624ad01afbc86fa15b4e652406f3bdcd01f36e00/rest_auth/serializers.py#L108

Perhaps you could take a note from AllAuth's playbook and implement a django setting to make your library easier to use with customized models?