mirror of
https://github.com/datarhei/core.git
synced 2025-10-06 16:37:04 +08:00
Change anon user to localhost user only if DisableLocalhost is set
This commit is contained in:
@@ -223,10 +223,11 @@ func NewServer(config Config) (Server, error) {
|
||||
}
|
||||
|
||||
s.middleware.iam = mwiam.NewWithConfig(mwiam.Config{
|
||||
IAM: config.IAM,
|
||||
Mounts: mounts,
|
||||
DisableLocalhost: config.IAMDisableLocalhost,
|
||||
Logger: s.logger.WithComponent("IAM"),
|
||||
IAM: config.IAM,
|
||||
Mounts: mounts,
|
||||
DisableLocalhost: config.IAMDisableLocalhost,
|
||||
WaitAfterFailedLogin: true,
|
||||
Logger: s.logger.WithComponent("IAM"),
|
||||
})
|
||||
|
||||
s.handler.about = api.NewAbout(
|
||||
|
Reference in New Issue
Block a user