www-bocal/bocal_auth/cas_backend.py
2017-10-14 17:59:42 +02:00

7 lines
221 B
Python

from django_cas_ng.backends import CASBackend
class BOcalCASBackend(CASBackend):
# Partly from Robin Champenois's "ExperiENS". Thanks!
def clean_username(self, username):
return username.lower().strip()