dovecot-2.2: auth: If authentication fails, never send back "nol...

dovecot at dovecot.org dovecot at dovecot.org
Mon May 5 13:25:23 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/3a5304b63f88
changeset: 17323:3a5304b63f88
user:      Timo Sirainen <tss at iki.fi>
date:      Mon May 05 16:24:53 2014 +0300
description:
auth: If authentication fails, never send back "nologin" field.
This only causes confusion.

diffstat:

 src/auth/auth-request-handler.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r d60c5ef63d63 -r 3a5304b63f88 src/auth/auth-request-handler.c
--- a/src/auth/auth-request-handler.c	Mon May 05 16:02:48 2014 +0300
+++ b/src/auth/auth-request-handler.c	Mon May 05 16:24:53 2014 +0300
@@ -274,6 +274,8 @@
 {
 	string_t *str = t_str_new(128);
 
+	auth_fields_remove(request->extra_fields, "nologin");
+
 	str_printfa(str, "FAIL\t%u", request->id);
 	if (request->user != NULL)
 		auth_str_add_keyvalue(str, "user", request->user);


More information about the dovecot-cvs mailing list