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) ...@@ -23,6 +23,9 @@ imap4d_login (struct imap4d_command *command, char *arg)
23 char *sp = NULL, *username, *pass; 23 char *sp = NULL, *username, *pass;
24 int rc; 24 int rc;
25 25
26 if (login_disabled)
27 return util_finish (command, RESP_NO, "Command disabled");
28
26 username = util_getword (arg, &sp); 29 username = util_getword (arg, &sp);
27 pass = util_getword (NULL, &sp); 30 pass = util_getword (NULL, &sp);
28 31
......