Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for User models with renamed username field. #79

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

gakhov
Copy link

@gakhov gakhov commented Apr 5, 2019

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.

Django supports having different 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 statndard ModelBackend.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant