Skip to content

Commit 13ee5e7

Browse files
committed
Fix logout
1 parent 62e5dbb commit 13ee5e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

routesauthorization.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func loginCallback(c *gin.Context) {
6464
}
6565

6666
//perms don't really matter too much in terms of security, so we'll not enforce it being secure
67-
c.SetCookie("perms", strings.Join(perms, "+"), 64000, "/", c.Request.Host, false, false)
67+
c.SetCookie("perms", strings.Join(perms, "+"), 64000, "/", "", true, false)
6868

6969
_ = session.Save()
7070
c.Redirect(http.StatusTemporaryRedirect, "/")

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export default {
126126
this.$vuetify.theme.dark = !this.$vuetify.theme.dark;
127127
},
128128
logout: function () {
129-
axios.post('/logout').then(() => {
129+
axios.get('/logout').then(() => {
130130
this.loggedIn = false
131131
this.$cookies.remove("perms")
132132
this.$cookies.remove("panelsession")

0 commit comments

Comments
 (0)