]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Rename "mech" event field to "mechanism"
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 4 Aug 2020 13:30:59 +0000 (16:30 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Thu, 27 Aug 2020 06:20:17 +0000 (06:20 +0000)
It's a bit more understandable to use the full name. There's now also
%{mechanism} variable alias.

src/auth/auth-request-fields.c

index 0b85c04628c8244eb0aa7f59019d77be8253c05a..9bdc1d7dede484b507acc98cc7be769c9734eafd 100644 (file)
@@ -14,7 +14,8 @@ void auth_request_fields_init(struct auth_request *request)
        request->fields.extra_fields = auth_fields_init(request->pool);
        if (request->mech != NULL) {
                request->fields.mech_name = request->mech->mech_name;
-               event_add_str(request->event, "mech", request->mech->mech_name);
+               event_add_str(request->event, "mechanism",
+                             request->mech->mech_name);
        }
 }