| From: | "Jonathan Gonzalez V(dot)" <jonathan(at)abdiel(dot)eu> |
|---|---|
| To: | pgsql-www(at)postgresql(dot)org |
| Subject: | Bug during logout |
| Date: | 2026-08-10 09:36:03 |
| Message-ID: | 874ih29v24.fsf@abdiel.eu |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-www |
Hello!!
Yesterday Jonathan S. Katz solved my issue with my account unlinking the
OAuth, with that I find out that the logout link isn't working because I
get a 405 when I click on it and I still logged in.
The following patch fix that issue, by adding the post method to the
pgweb/util/contexts.py and templates/base/page.html.
Django deprecated the GET method for the logout in 4.1[0] so mostly
probably this was a leftover of a migration. Giving that this could
happen again, I've added a test for that too.
Also, there's a change in the CSS that makes the button inside the form
to look like a link.
Regards!!
[0] https://docs.djangoproject.com/en/dev/releases/4.1/#log-out-via-get
--
Jonathan Gonzalez V.
EDB https://www.enterprisedb.com
| Attachment | Content-Type | Size |
|---|---|---|
| 0001-Turn-the-logout-link-into-a-POST-method-following-Dj.patch | text/x-diff | 3.4 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Álvaro Herrera | 2026-08-11 06:50:00 | Re: Bug during logout |
| Previous Message | Pritt Balagopal | 2026-08-04 15:09:28 | [PATCH] Updated redhat.svg to modern logo, Updated suse.png to suse.svg following the correct color and guidelines from openSuse |