diff options
author | Eduardo Chappa <chappa@washington.edu> | 2020-11-01 16:21:25 -0700 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2020-11-01 16:21:25 -0700 |
commit | fc5a3d34bb2dd42de653e2a2ad761d229aba8954 (patch) | |
tree | fa34d2f9b3cbd6a50947da6ecc8683367e6d492c /imap/src/c-client/oauth2_aux.c | |
parent | 649572ba29dfab09cb77a5c2f6f5d12e9822792c (diff) | |
download | alpine-fc5a3d34bb2dd42de653e2a2ad761d229aba8954.tar.xz |
* The previous commit does not allow clients to login using xoauth2, so
this commit fixes that.
Diffstat (limited to 'imap/src/c-client/oauth2_aux.c')
-rw-r--r-- | imap/src/c-client/oauth2_aux.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/imap/src/c-client/oauth2_aux.c b/imap/src/c-client/oauth2_aux.c index 6b7c401b..420f3be1 100644 --- a/imap/src/c-client/oauth2_aux.c +++ b/imap/src/c-client/oauth2_aux.c @@ -146,8 +146,10 @@ mm_login_oauth2_c_client_method (NETMBX *mb, char *user, char *method, } if(oauth2->param[OA2_Id].value == NULL - || (oauth2->require_secret && oauth2->param[OA2_Secret].value == NULL)) + || (oauth2->require_secret && oauth2->param[OA2_Secret].value == NULL)){ + *tryanother = 1; return; + } /* Do we have a method to execute? */ if (oauth2->first_time && oauth2->server_mthd[OA2_GetDeviceCode].name){ |