We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f09de9 commit caaa54fCopy full SHA for caaa54f
middlewares/auth.go
@@ -120,8 +120,7 @@ func Authenticate(c *fiber.Ctx) error {
120
}
121
// for backward compatability
122
if strings.HasSuffix(path, "/produce/single") || strings.HasSuffix(path, "/produce/batch") {
123
- emptyAuthSchema := models.AuthSchema{}
124
- if user == emptyAuthSchema {
+ if user.Username == "" {
125
opts := []memphis.Option{memphis.Reconnect(true), memphis.MaxReconnect(10), memphis.ReconnectInterval(3 * time.Second)}
126
if configuration.USER_PASS_BASED_AUTH {
127
opts = append(opts, memphis.Password(configuration.ROOT_PASSWORD))
0 commit comments