[Commits] [SCM] claws branch, gtk2, updated. 3.20.0-37-ga556fef7d
miras at claws-mail.org
miras at claws-mail.org
Sat Feb 3 22:20:34 UTC 2024
The branch, gtk2 has been updated
via a556fef7d46141587a98c7a5f5eb5b9d9f9539f2 (commit)
from ebe78c08946b88c139c7178f0eee54b4607ea05d (commit)
Summary of changes:
src/oauth2.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit a556fef7d46141587a98c7a5f5eb5b9d9f9539f2
Author: Michael Rasmussen <mir at datanom.net>
Date: Sat Feb 3 23:20:26 2024 +0100
Fix bug #4762 oauth2: preserve an existing refresh token patch by Olaf Hering
Signed-off-by: Michael Rasmussen <mir at datanom.net>
diff --git a/src/oauth2.c b/src/oauth2.c
index e8bd794a2..32ed03724 100644
--- a/src/oauth2.c
+++ b/src/oauth2.c
@@ -658,7 +658,8 @@ gint oauth2_check_passwds (PrefsAccount *ac_prefs)
passwd_store_set_account(ac_prefs->account_id, PWS_ACCOUNT_SEND, OAUTH2Data->access_token, FALSE);
passwd_store_set_account(ac_prefs->account_id, PWS_ACCOUNT_OAUTH2_EXPIRY, OAUTH2Data->expiry_str, FALSE);
//Some providers issue replacement refresh tokens with each access token. Re-store whether replaced or not.
- passwd_store_set_account(ac_prefs->account_id, PWS_ACCOUNT_OAUTH2_REFRESH, OAUTH2Data->refresh_token, FALSE);
+ if (OAUTH2Data->refresh_token != NULL)
+ passwd_store_set_account(ac_prefs->account_id, PWS_ACCOUNT_OAUTH2_REFRESH, OAUTH2Data->refresh_token, FALSE);
passwd_store_write_config();
log_message(LOG_PROTOCOL, _("OAuth2 access and refresh token updated\n"));
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list