Tivix/django-rest-auth

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

RyanFleck opened this issue · 0 comments

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.

email_address = user.emailaddress_set.get(email=user.email)

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?