talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 23c34bc4b7adef7749e55fbca406c922d53dbd60
parent ec2333b902f98d5e917994af8a7ff1ef3c1bdf3a
Author: Michael Rasmussen <mir@datanom.net>
Date:   Mon, 18 Sep 2023 21:27:40 +0200

Update on-disk tokens as well when in-memory tokens are updated. Patch by Gianni Ceccarelli

Signed-off-by: Michael Rasmussen <mir@datanom.net>

Diffstat:
Msrc/gtk/authors.h | 1+
Msrc/oauth2.c | 1+
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/gtk/authors.h b/src/gtk/authors.h @@ -109,6 +109,7 @@ static char *CONTRIBS_LIST[] = { "Anton Butanaev", "Henrik Carlqvist", "Luca Cavalli", +"Gianni Ceccarelli", "David Chalmers", "Wei-Lun Chao", "Guillaume Chazarain", diff --git a/src/oauth2.c b/src/oauth2.c @@ -662,6 +662,7 @@ gint oauth2_check_passwds (PrefsAccount *ac_prefs) 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); + passwd_store_write_config(); log_message(LOG_PROTOCOL, _("OAuth2 access and refresh token updated\n")); }