From 4e434a399ade24e3fe63f442b94269eae4035ca0 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 17 Feb 2021 10:28:50 +0100 Subject: [PATCH] Updated identity OAuth token on updating account token --- app/src/main/java/eu/faircode/email/EmailService.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/EmailService.java b/app/src/main/java/eu/faircode/email/EmailService.java index c94adce09f..2baabd79d6 100644 --- a/app/src/main/java/eu/faircode/email/EmailService.java +++ b/app/src/main/java/eu/faircode/email/EmailService.java @@ -315,8 +315,9 @@ public class EmailService implements AutoCloseable { @Override public void onPasswordChanged(String newPassword) { DB db = DB.getInstance(context); - int count = db.account().setAccountPassword(account.id, newPassword); - EntityLog.log(context, account.name + " token refreshed=" + count); + int accounts = db.account().setAccountPassword(account.id, newPassword); + int identities = db.identity().setIdentityPassword(account.id, account.user, newPassword, account.auth_type); + EntityLog.log(context, account.name + " token refreshed=" + accounts + "/" + identities); } }, account.certificate_alias, account.fingerprint);