aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJohn Olheiser <john.olheiser@gmail.com>2020-03-02 22:50:31 -0600
committerGitHub <noreply@github.com>2020-03-02 22:50:31 -0600
commit0e2217bd2d8833f0bff84767f676fc93c84d4b9a (patch)
tree1c3761814e57b37cb313a9e475719d76e9dbe02f /templates
parentbea497ff96f4deae617e54468576d11d105e2125 (diff)
downloadgitea-0e2217bd2d8833f0bff84767f676fc93c84d4b9a.tar.gz
gitea-0e2217bd2d8833f0bff84767f676fc93c84d4b9a.zip
Logout POST action (#10582)
* Change logout to POST * Update for redirect Signed-off-by: jolheiser <john.olheiser@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/base/head_navbar.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl
index 51a021d0e5..de02bca1f7 100644
--- a/templates/base/head_navbar.tmpl
+++ b/templates/base/head_navbar.tmpl
@@ -115,7 +115,7 @@
{{end}}
<div class="divider"></div>
- <a class="item" href="{{AppSubUrl}}/user/logout">
+ <a class="item link-action" href data-url="{{AppSubUrl}}/user/logout" data-redirect="{{AppSubUrl}}/">
{{svg "octicon-sign-out" 16}}
{{.i18n.Tr "sign_out"}}<!-- Sign Out -->
</a>