From: Aki Tuomi Date: Thu, 23 Feb 2017 09:29:17 +0000 (+0200) Subject: auth: Export oauth2 pass_attrs to passdb reply X-Git-Tag: 2.3.0.rc1~1999 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d85468c0084b7eecee6226c5db43891a19d3710b;p=thirdparty%2Fdovecot%2Fcore.git auth: Export oauth2 pass_attrs to passdb reply --- diff --git a/src/auth/db-oauth2.c b/src/auth/db-oauth2.c index c43936a4ce..3c14d79d22 100644 --- a/src/auth/db-oauth2.c +++ b/src/auth/db-oauth2.c @@ -511,6 +511,7 @@ static void db_oauth2_process_fields(struct db_oauth2_request *req) if (db_oauth2_validate_username(req, &error) && db_oauth2_user_is_enabled(req, &error) && db_oauth2_token_in_scope(req, &error) && + db_oauth2_template_export(req, &error) == 0 && !req->failed) { req->result = PASSDB_RESULT_OK; } else {