Fail if login_disabled is set
Showing
1 changed file
with
3 additions
and
0 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment