diff options
Diffstat (limited to 'libsylph/news.c')
| -rw-r--r-- | libsylph/news.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/libsylph/news.c b/libsylph/news.c index b7a922a..e75976e 100644 --- a/libsylph/news.c +++ b/libsylph/news.c | |||
| @@ -250,14 +250,12 @@ static Session *news_session_new_for_folder(Folder *folder) | |||
| 250 | ac = folder->account; | 250 | ac = folder->account; |
| 251 | if (ac->use_nntp_auth && ac->userid && ac->userid[0]) { | 251 | if (ac->use_nntp_auth && ac->userid && ac->userid[0]) { |
| 252 | userid = ac->userid; | 252 | userid = ac->userid; |
| 253 | if (ac->passwd && ac->passwd[0]) | 253 | if (ac->passwd && ac->passwd[0]) { |
| 254 | if (master_password_active()) { | 254 | /* TODO: check if format is correct */ |
| 255 | passwd = decrypt_with_master_password(ac->passwd); | 255 | passwd = decrypt_with_master_password(ac->passwd); |
| 256 | } else { | 256 | } else { |
| 257 | passwd = g_strdup(ac->passwd); | ||
| 258 | } | ||
| 259 | else | ||
| 260 | passwd = input_query_password(ac->nntp_server, userid); | 257 | passwd = input_query_password(ac->nntp_server, userid); |
| 258 | } | ||
| 261 | } | 259 | } |
| 262 | 260 | ||
| 263 | if (ac->use_socks && ac->use_socks_for_recv && ac->proxy_host) { | 261 | if (ac->use_socks && ac->use_socks_for_recv && ac->proxy_host) { |
