Merge pull request #1671 from sadwxqezc/fix-jwt

Fix jwt revoke
This commit is contained in:
Dominic Wong 2020-06-02 09:27:14 +01:00 committed by GitHub
commit e4e56b0f3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,7 +83,7 @@ func (j *jwt) Revoke(rule *auth.Rule) error {
defer j.Unlock()
rules := []*auth.Rule{}
for _, r := range rules {
for _, r := range j.rules {
if r.ID != rule.ID {
rules = append(rules, r)
}