forked from DGNum/gestioCOF
9 lines
298 B
Python
9 lines
298 B
Python
|
from kfet.backends import KFetBackend
|
||
|
|
||
|
class KFetAuthenticationMiddleware(object):
|
||
|
def process_request(self, request):
|
||
|
kfet_backend = KFetBackend()
|
||
|
temp_request_user = kfet_backend.authenticate(request)
|
||
|
if temp_request_user:
|
||
|
request.user = temp_request_user
|