Commit 997bc2c3 997bc2c3baf5e7db73478013b7851722fa61de8d by Sergey Poznyakoff

Fail if login_disabled is set

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