From 4969abf35538f8412440c85e8ce53143c0f805db Mon Sep 17 00:00:00 2001 From: Lev Kokotov Date: Thu, 30 Mar 2023 15:29:10 -0700 Subject: [PATCH] Hmm --- src/auth.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/auth.rs b/src/auth.rs index 7b5bf21..32094ec 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -331,6 +331,21 @@ impl Md5 { } None => { + if !get_config().is_auth_query_configured() { + error_response( + write, + &format!( + "No password configured and auth_query is not set: {:?}, user: {:?}", + self.pool_name, self.username + ), + ) + .await?; + + return Err(Error::ClientError(format!( + "No password configured and auth_query is not set" + ))); + } + // Fetch hash from server let hash = (*pool.auth_hash.read()).clone();