Merge pull request #607 from wansir/token-management
feat: token management
This commit is contained in:
@@ -258,7 +258,7 @@ func (c *Config) stripEmptyOptions() {
|
||||
c.MySQLOptions = nil
|
||||
}
|
||||
|
||||
if c.RedisOptions != nil && c.RedisOptions.Host == "" {
|
||||
if c.RedisOptions != nil && c.RedisOptions.RedisURL == "" {
|
||||
c.RedisOptions = nil
|
||||
}
|
||||
|
||||
|
||||
@@ -63,10 +63,7 @@ func newTestConfig() *Config {
|
||||
GroupSearchBase: "ou=Groups,dc=example,dc=org",
|
||||
},
|
||||
RedisOptions: &redis.RedisOptions{
|
||||
Host: "10.10.111.110",
|
||||
Port: 6379,
|
||||
Password: "",
|
||||
DB: 0,
|
||||
RedisURL: "redis://:qwerty@localhost:6379/1",
|
||||
},
|
||||
S3Options: &s2is3.S3Options{
|
||||
Endpoint: "http://minio.openpitrix-system.svc",
|
||||
|
||||
Reference in New Issue
Block a user