nitmir / django-cas-server

A Django Central Authentication Service server implementing the CAS Protocol 3.0 Specification
GNU General Public License v3.0
132 stars 44 forks source link

Use custom USERNAME_FIELD #63

Closed desperadik closed 4 years ago

desperadik commented 4 years ago

Hey. Thanks for the app.

We use a custom model for a User with an e-mail authorization field.

Also, we redefined CAS_AUTH_CLASS, where in the __init__ method we replaced username with email.

BUT, /cas/login/ uses veiws.LoginView, where username is used in the methods - in the file views.py on line 506.

How to be? Completely override LoginView?