fix (backend-rs): encode redis password

This commit is contained in:
naskya 2024-07-12 23:43:08 +09:00
parent 183c874fe6
commit bbfd3218e1
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -60,7 +60,7 @@ async fn init_conn_pool() -> Result<(), RedisError> {
params.push(user.to_string()) params.push(user.to_string())
} }
if let Some(pass) = &redis.pass { if let Some(pass) = &redis.pass {
params.push(format!(":{}@", pass)) params.push(format!(":{}@", urlencoding::encode(pass)))
} }
params.push(redis.host.to_string()); params.push(redis.host.to_string());
params.push(format!(":{}", redis.port)); params.push(format!(":{}", redis.port));