summaryrefslogtreecommitdiffstats
path: root/imap/auth_login.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2000-08-21 11:30:28 +0000
committerThomas Roessler <roessler@does-not-exist.org>2000-08-21 11:30:28 +0000
commit2526f63a480644c2b70494cbbbc3c9ce19f682f7 (patch)
treedd2f8f113fdd234aee6f47b3e1bc16c14952fcd5 /imap/auth_login.c
parentd249f685cd736d45c46a8f26ffe4a0268768d6f8 (diff)
patch-bac.command-2
Diffstat (limited to 'imap/auth_login.c')
-rw-r--r--imap/auth_login.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/imap/auth_login.c b/imap/auth_login.c
index 731f14f3..fff5baa6 100644
--- a/imap/auth_login.c
+++ b/imap/auth_login.c
@@ -29,6 +29,12 @@ imap_auth_res_t imap_auth_login (IMAP_DATA* idata)
char buf[STRING];
int rc;
+ if (mutt_bit_isset (idata->capabilities, LOGINDISABLED))
+ {
+ mutt_message _("LOGIN disabled on this server.");
+ return IMAP_AUTH_UNAVAIL;
+ }
+
if (mutt_account_getuser (&idata->conn->account))
return IMAP_AUTH_FAILURE;
if (mutt_account_getpass (&idata->conn->account))