Mercurial > dovecot > core-2.2
diff src/auth/auth-settings.c @ 17139:27ac53f11f1f
auth: Allow auth_verbose_passwords=yes as an alias for "plain".
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 07 Feb 2014 15:53:54 -0500 |
parents | afd3cfcf1bcb |
children | 917946c08f83 |
line wrap: on
line diff
--- a/src/auth/auth-settings.c Fri Feb 07 15:53:32 2014 -0500 +++ b/src/auth/auth-settings.c Fri Feb 07 15:53:54 2014 -0500 @@ -330,7 +330,7 @@ } static bool -auth_verify_verbose_password(const struct auth_settings *set, +auth_verify_verbose_password(struct auth_settings *set, const char **error_r) { const char *p, *value = set->verbose_passwords; @@ -351,7 +351,11 @@ return TRUE; else if (strcmp(value, "sha1") == 0) return TRUE; - else { + else if (strcmp(value, "yes") == 0) { + /* just use it as alias for "plain" */ + set->verbose_passwords = "plain"; + return TRUE; + } else { *error_r = "auth_verbose_passwords: Invalid value"; return FALSE; }