Révision 7f7705db
Ajouté par Thomas Noël il y a plus de 9 ans
usr/local/univnautes/sp/sp/auth.py | ||
---|---|---|
1 | 1 |
# -*- encoding: utf-8 -*- |
2 | 2 |
|
3 | 3 |
import subprocess |
4 |
import settings |
|
4 |
import syslog |
|
5 |
import xml.etree.ElementTree |
|
6 |
|
|
7 |
from django.conf import settings |
|
5 | 8 |
from django.contrib import messages |
6 | 9 |
|
7 | 10 |
from authentic2.authsaml2 import signals |
8 | 11 |
|
9 |
import xml.etree.ElementTree |
|
10 |
import syslog |
|
11 |
|
|
12 | 12 |
def user_login_cb(sender, request, attributes={}, **kwargs): |
13 | 13 |
if request and request.user.is_anonymous(): |
14 | 14 |
return |
Formats disponibles : Unified diff
auth.py: fix import django settings