Skip to content

Commit

Permalink
Fix logout
Browse files Browse the repository at this point in the history
  • Loading branch information
LordRalex committed May 15, 2021
1 parent 62e5dbb commit 13ee5e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion routesauthorization.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func loginCallback(c *gin.Context) {
}

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

_ = session.Save()
c.Redirect(http.StatusTemporaryRedirect, "/")
Expand Down
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export default {
this.$vuetify.theme.dark = !this.$vuetify.theme.dark;
},
logout: function () {
axios.post('/logout').then(() => {
axios.get('/logout').then(() => {
this.loggedIn = false
this.$cookies.remove("perms")
this.$cookies.remove("panelsession")
Expand Down

0 comments on commit 13ee5e7

Please sign in to comment.