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

@@ -129,9 +129,7 @@ func (t *tokenOperator) tokenCacheValidate(username, token string) error {
if exist, err := t.cache.Exists(key); err != nil {
return err
} else if !exist {
err = errors.New("token not found in cache")
klog.V(4).Info(fmt.Errorf("%s: %s", err, token))
return err
return errors.New("token not found in cache")
}
return nil
}