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 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.