redirect user to / after slo (#19387)

This commit is contained in:
Josue Kouka 2017-10-12 05:05:17 +02:00
parent 462211e672
commit 0a2809419e
4 changed files with 7 additions and 2 deletions

View File

@ -33,6 +33,6 @@
{% endif %}
{% else %}
{% if portal_user_url %}<div id="mandaye-advances"><a href="{{portal_user_url}}">{% trans 'advances' %}</a></div>{% endif %}
<div id="mandaye-logon-url"><a href="{% url 'mellon_login' %}">{% trans 'login' %}</a></div>
<div id="mandaye-logon-url"><a href="{% url 'post-login' %}">{% trans 'login' %}</a></div>
<div id="mandaye-association-url"><a href="{% url 'associate' %}">{% trans 'associate' %}</a></div>
{% endif %}

View File

@ -44,6 +44,10 @@ app_settings = get_app_settings()
logger = logging.getLogger(__name__)
def home(request):
return HttpResponseRedirect('/')
def logout(request, *args, **kwargs):
logger.debug("running slo")
data = get_logout_info(request)

View File

@ -124,7 +124,7 @@ STATIC_DIRS = (
LOGIN_URL = 'mellon_login'
LOGIN_LOGOUT = 'mellon_logout'
LOGIN_REDIRECT_URL = 'post-login'
LOGIN_REDIRECT_URL = 'home'
# Authentication settings
try:

View File

@ -22,6 +22,7 @@ from django.conf import settings
from mandayejs.applications import app_web_services
urlpatterns = patterns('',
url(r'^_mandaye/home/$', 'mandayejs.mandaye.views.home', name='home'),
url(r'^_mandaye/panel$', 'mandayejs.mandaye.views.panel', name='panel'),
url(r'^_mandaye/associate/$', 'mandayejs.mandaye.views.associate', name='associate'),
url(r'^_mandaye/dissociate/$', 'mandayejs.mandaye.views.dissociate', name='dissociate'),