| Message ID | 20260329171109.34764-1-piotr@qbee.io |
|---|---|
| State | Accepted, archived |
| Commit | a60f67a605a2253eab967840d9e4a8c68638b381 |
| Delegated to: | Tim Orling |
| Headers | show |
| Series | [layerindex-web,1/3] Convert logout to a POST request, as GET is not longer supported by the new Djang 5.2 TLS. | expand |
Minor tweak to subject line: Djang -> Django. Merged to master. Thank you. On Sun, Mar 29, 2026 at 10:11 AM Piotr Buliński via lists.yoctoproject.org <piotr=qbee.io@lists.yoctoproject.org> wrote: > Signed-off-by: Piotr Buliński <piotr@qbee.io> > --- > templates/base.html | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/templates/base.html b/templates/base.html > index e167139..e31238c 100644 > --- a/templates/base.html > +++ b/templates/base.html > @@ -30,6 +30,7 @@ > <body> > {% block header %} > {% autoescape on %} > + <form id="logout-form" method="post" action="{% url 'logout' %}">{% > csrf_token %}</form> > <nav class="navbar navbar-default navbar-fixed-top"> > <div class="container-fluid"> > <div class="navbar-header"> > @@ -53,7 +54,7 @@ > <b class="caret"></b> > </button> > <ul class="dropdown-menu"> > - <li><a href="{% url 'logout' %}">{% trans > "Log out" %}</a></li> > + <li><a href="#" > onclick="document.getElementById('logout-form').submit(); return false;">{% > trans "Log out" %}</a></li> > <li><a href="{% url 'password_change' %}">{% > trans "Change password" %}</a></li> > <li><a href="{% url 'profile' %}?return_to={{ > request.path }}">{% trans "Edit profile" %}</a></li> > </ul> > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#3575): > https://lists.yoctoproject.org/g/yocto-patches/message/3575 > Mute This Topic: https://lists.yoctoproject.org/mt/118566576/924729 > Group Owner: yocto-patches+owner@lists.yoctoproject.org > Unsubscribe: > https://lists.yoctoproject.org/g/yocto-patches/leave/13169857/924729/1023951714/xyzzy > [ticotimo@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- > > >
diff --git a/templates/base.html b/templates/base.html index e167139..e31238c 100644 --- a/templates/base.html +++ b/templates/base.html @@ -30,6 +30,7 @@ <body> {% block header %} {% autoescape on %} + <form id="logout-form" method="post" action="{% url 'logout' %}">{% csrf_token %}</form> <nav class="navbar navbar-default navbar-fixed-top"> <div class="container-fluid"> <div class="navbar-header"> @@ -53,7 +54,7 @@ <b class="caret"></b> </button> <ul class="dropdown-menu"> - <li><a href="{% url 'logout' %}">{% trans "Log out" %}</a></li> + <li><a href="#" onclick="document.getElementById('logout-form').submit(); return false;">{% trans "Log out" %}</a></li> <li><a href="{% url 'password_change' %}">{% trans "Change password" %}</a></li> <li><a href="{% url 'profile' %}?return_to={{ request.path }}">{% trans "Edit profile" %}</a></li> </ul>
Signed-off-by: Piotr Buliński <piotr@qbee.io> --- templates/base.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)