rerouted AuthBackend, changed bootstrap colors

This commit is contained in:
Arthur Gerbaud
2016-08-17 20:20:06 +02:00
parent 7694c4ea7a
commit 6e9a76696e
16 changed files with 259 additions and 227 deletions

16
website/backends.py Normal file
View File

@@ -0,0 +1,16 @@
from django.contrib.auth.backends import ModelBackend
class MyBackend(ModelBackend):
def authenticate(self, **kwargs):
print('use MyBackend')
return super().authenticate(**kwargs)
def get_user(self, user_id):
print('use MyBackend: get_user', user_id)
return super().get_user(user_id)
def has_perm(self, *args, **kwargs):
print('call has_perm', args, kwargs)
return super().has_perm(*args, **kwargs)