fix (backend-rs): encode redis password
This commit is contained in:
parent
183c874fe6
commit
bbfd3218e1
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ async fn init_conn_pool() -> Result<(), RedisError> {
|
|||
params.push(user.to_string())
|
||||
}
|
||||
if let Some(pass) = &redis.pass {
|
||||
params.push(format!(":{}@", pass))
|
||||
params.push(format!(":{}@", urlencoding::encode(pass)))
|
||||
}
|
||||
params.push(redis.host.to_string());
|
||||
params.push(format!(":{}", redis.port));
|
||||
|
|
Loading…
Reference in a new issue