POC Campus Condorcet : renommage des URLs

This commit is contained in:
Paul Marillonnet 2017-05-11 10:37:33 +02:00
parent f345876445
commit a3e14ad8e4
2 changed files with 4 additions and 8 deletions

View File

@ -49,13 +49,9 @@ AUTHENTICATION_BACKENDS = (
AUTH_USER_MODEL = 'saml.SupAnnUser'
#LOGIN_REDIRECT_URL = '/saml/index/'
LOGIN_REDIRECT_URL = '/saml/unit'
LOGIN_URL = '/saml/login/'
LOGOUT_URL = '/saml/logout/'
#LOGIN_URL = 'mellon_login'
#LOGOUT_URL = 'mellon_logout'
LOGIN_REDIRECT_URL = '/register/unit'
LOGIN_URL = '/register/login/'
LOGOUT_URL = '/register/logout/'
MELLON_ATTRIBUTE_MAPPING = {
'first_name': '{attributes[fname_test][0]}',

View File

@ -4,7 +4,7 @@
Bonjour {{ prenom }} {{ nom }}.<br>
Veuillez confirmer votre identite et mentionner votre unite d'affectation.<br><br>
<form action="/saml/unit" method="post">
<form action="{% url "unit" %}" method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Submit" />