fix: enableMultiLogin configuration does not take effect (#5819)

This commit is contained in:
hongming
2023-07-06 18:04:51 +08:00
committed by GitHub
parent 0fe9fb48b4
commit a64e573c04
3 changed files with 7 additions and 5 deletions

View File

@@ -92,7 +92,7 @@ func (s *inMemoryCache) cleanInvalidToken() {
func (s *inMemoryCache) Keys(pattern string) ([]string, error) {
// There is a little difference between go regexp and redis key pattern
// In redis, * means any character, while in go . means match everything.
pattern = strings.Replace(pattern, "*", ".", -1)
pattern = strings.Replace(pattern, "*", ".*", -1)
re, err := regexp.Compile(pattern)
if err != nil {