gestiojeux/accounts/backends.py

8 lines
260 B
Python
Raw Permalink Normal View History

from django_cas_ng.backends import CASBackend as DjangoCasNgBackend
class CasBackend(DjangoCasNgBackend):
def clean_username(self, username):
# We need to build an email out of the CAS username
return username.lower() + "@clipper.ens.fr"