django-cas icon indicating copy to clipboard operation
django-cas copied to clipboard

Add support for User models with renamed `username` field.

Open gakhov opened this issue 5 years ago • 0 comments

Django supports having different field name for usernames. It's very common to use email as username, and the Django framework profived all nessesary features to do that in a convenient way, i.e. methods to set and access those fields without knowing their exact names.

This commit fixed the current user interaction in CAS client to use the mentioned above methods, as it recommended by Django core and implemented in their standard ModelBackend.

gakhov avatar Apr 05 '19 09:04 gakhov