diff --git a/frontend/src/forms/Login.vue b/frontend/src/forms/Login.vue index 928b953b..cdbf10a9 100644 --- a/frontend/src/forms/Login.vue +++ b/frontend/src/forms/Login.vue @@ -110,7 +110,7 @@ return "" }, GHlogin() { - window.location = `https://github.com/login/oauth/authorize?client_id=${this.oauth.gh_client_id}&redirect_uri=${this.encode(this.core.domain+"/oauth/github")}&scope=user,repo` + window.location = `https://github.com/login/oauth/authorize?client_id=${this.oauth.gh_client_id}&redirect_uri=${this.encode(this.core.domain+"/oauth/github")}&scope=read:user,read:org` }, Slacklogin() { window.location = `https://slack.com/oauth/authorize?client_id=${this.oauth.slack_client_id}&redirect_uri=${this.encode(this.core.domain+"/oauth/slack")}&scope=identity.basic` diff --git a/handlers/cache.go b/handlers/cache.go index 72f639f9..80a0b30e 100644 --- a/handlers/cache.go +++ b/handlers/cache.go @@ -91,8 +91,8 @@ func (s Storage) List() map[string]Item { //Get a cached content by key func (s Storage) Get(key string) []byte { item := s.items[key] - if s.items[key].Expired() { - CacheStorage.Delete(key) + if item.Expired() { + s.Delete(key) return nil } return item.Content