Commit f9022892 f9022892b640af721d510d67b5f5d26c8ac0cd1e by Sergey Poznyakoff

(imap4d_login): Do not proceed if tls_required is set.

1 parent bf959364
......@@ -23,7 +23,7 @@ imap4d_login (struct imap4d_command *command, char *arg)
char *sp = NULL, *username, *pass;
int rc;
if (login_disabled)
if (login_disabled || tls_required)
return util_finish (command, RESP_NO, "Command disabled");
username = util_getword (arg, &sp);
......