forked from meli/meli
1
Fork 0

if auth is false checks if config has password entry

master
rek2 2023-07-07 01:36:56 +02:00 committed by Manos Pitsidianakis
parent b5f205b77b
commit 3803d788ab
Signed by: Manos Pitsidianakis
GPG Key ID: 7729C7707F7E09D0
1 changed files with 4 additions and 1 deletions

View File

@ -595,7 +595,10 @@ impl NntpType {
} else {
get_conf_val!(s["server_username"], String::new())?
},
server_password: if require_auth {
server_password: if require_auth
|| s.extra.contains_key("server_password")
|| s.extra.contains_key("server_password_command")
{
s.server_password()?
} else {
get_conf_val!(s["server_password"], String::new())?