refactor authentication (#1951)
* refactor authentication * refactor authentication
This commit is contained in:
@@ -99,7 +99,7 @@ func parse(c *caddy.Controller) (*Rule, error) {
|
||||
return nil, c.ArgErr()
|
||||
}
|
||||
|
||||
options := &cache.Options{RedisURL: c.Val()}
|
||||
options := &cache.Options{Host: c.Val()}
|
||||
|
||||
if err := options.Validate(); len(err) > 0 {
|
||||
return nil, c.ArgErr()
|
||||
|
||||
Reference in New Issue
Block a user