Skip to content

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

Open
gakhov wants to merge 1 commit intokstateome:developfrom
gakhov:develop
Open

Add support for User models with renamed username field.#79
gakhov wants to merge 1 commit intokstateome:developfrom
gakhov:develop

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