Bug #3859
Fix bad bug fix introduced in Révision 77ffa41f
Début:
22 octobre 2013
Echéance:
% réalisé:
100%
Temps estimé:
Patch proposed:
Planning:
Description
Something close to
diff --git a/authentic2/idp/templates/idp/logout.html b/authentic2/idp/templates/idp/logout.html index f19ec77..3e3858d 100644 --- a/authentic2/idp/templates/idp/logout.html +++ b/authentic2/idp/templates/idp/logout.html @@ -4,7 +4,7 @@ {% block title %} {% trans "Logout" %} {% endblock %} -{% block bodyargs %}onload="setTimeout(function () {window.location='{{ next_page }}'}, 300)"{% endblock %} +{% block bodyargs %}onload="setTimeout(function () {window.location='{{ next_page }}'}, {{ redir_timeout }})"{% endblock %} {% block content %} diff --git a/authentic2/idp/views.py b/authentic2/idp/views.py index bf37af6..bb0b8aa 100644 --- a/authentic2/idp/views.py +++ b/authentic2/idp/views.py @@ -103,14 +103,7 @@ def logout(request, next_page='/', redirect_field_name=REDIRECT_FIELD_NAME, l = logout_list(request) if l: # Full logout - ok_icon_url = '%s/authentic2/images/ok.png' % settings.STATIC_URL - next_is_ok = '?local=ok&next=%s' % urllib.quote(ok_icon_url) - code = '<div>' - code += _('Local logout...') - code += '<iframe src="/logout/%s" marginwidth="0" marginheight="0" \ - scrolling="no" style="border: none" width="16" height="16"> \ - </iframe></div>' % next_is_ok - l += [code] + next_page = '/logout?local=ok&next=%s' % urllib.quote(next_page) context['logout_list'] = l
Révisions associées
Historique
Mis à jour par Mikaël Ates il y a plus de 10 ans
- Statut changé de Nouveau à Résolu (à déployer)
- % réalisé changé de 0 à 100
Appliqué par commit 0d6b057e299a0e1c62b1654d883a53b684847fe9.
Mis à jour par Benjamin Dauvergne il y a plus de 9 ans
- Statut changé de Résolu (à déployer) à Fermé
idp: local logout only need to set a correct next page parameter (fixes #3859).