]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: db-oauth2 - Improve "Internal error" message for grant lookups
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 26 May 2020 22:03:11 +0000 (01:03 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 7 Dec 2020 08:59:28 +0000 (08:59 +0000)
src/auth/db-oauth2.c

index 9d89deee4ea448cced68f75c8204edc2417c9b0b..f781437038a4536f3a7c02a4b4ab9d90d980d52f 100644 (file)
@@ -754,7 +754,7 @@ db_oauth2_lookup_passwd_grant(struct oauth2_request_result *result,
                        passdb_result = PASSDB_RESULT_PASSWORD_MISMATCH;
                }
                if (error == NULL)
-                       error = "Internal error";
+                       error = "OAuth2 server returned failure without error field";
        }
        db_oauth2_callback(req, passdb_result, error);
 }