conn:add_cmd('AUTH', { redis_params['username'], redis_params['password'] })
need_exec = true
else
- logger.errx('Redis requires a password when username is supplied')
+ logger.warnx('Redis requires a password when username is supplied')
return false, nil, addr
end
elseif redis_params['password'] then
"AUTH %s %s", username.c_str(), password.c_str());
}
else {
- msg_err("Redis requires a password when username is supplied");
- redisAsyncFree(ctx);
- return nullptr;
+ msg_warn("Redis requires a password when username is supplied");
}
}
else if (!password.empty()) {
redisAsyncCommand(redis, NULL, NULL, "AUTH %s %s", ctx->username, ctx->password);
}
else {
- msg_err("Redis requires a password when username is supplied");
- redisAsyncFree(ctx);
- return NULL;
+ msg_warn("Redis requires a password when username is supplied");
}
}
else if (ctx->password) {
redisAsyncCommand(redis, NULL, NULL, "AUTH %s %s", ctx->username, ctx->password);
}
else {
- msg_err("Redis requires a password when username is supplied");
- redisAsyncFree(ctx);
- return NULL;
+ msg_warn("Redis requires a password when username is supplied");
}
}
else if (ctx->password) {
if redis_params.password then
password = string.format( '%s:%s@', redis_params.username, redis_params.password)
else
- rspamd_logger.errx(task, "Redis requires a password when username is supplied")
- return
+ rspamd_logger.warnx(task, "Redis requires a password when username is supplied")
end
elseif redis_params.password then
password = string.format(':%s@', redis_params.password)