Closed desperadik closed 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.
__init__
BUT, /cas/login/ uses veiws.LoginView, where username is used in the methods - in the file views.py on line 506.
username
How to be? Completely override LoginView?
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?