]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Export oauth2 pass_attrs to passdb reply
authorAki Tuomi <aki.tuomi@dovecot.fi>
Thu, 23 Feb 2017 09:29:17 +0000 (11:29 +0200)
committerGitLab <gitlab@git.dovecot.net>
Thu, 23 Feb 2017 11:06:38 +0000 (13:06 +0200)
src/auth/db-oauth2.c

index c43936a4ced3e85bcd9b091e9565eaa40e0507dc..3c14d79d229208a3bacb080ed57c21fbc358fc7d 100644 (file)
@@ -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 {