From 7a65030c0b7bfd09c1cec764d48f6f6b48871f52 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 16 Aug 2021 14:36:12 +0200 Subject: [PATCH] Link token refresh to account log --- app/src/main/java/eu/faircode/email/EmailService.java | 6 ++++-- 1 file changed, 4 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 2b6e11f5da..944fc5104e 100644 --- a/app/src/main/java/eu/faircode/email/EmailService.java +++ b/app/src/main/java/eu/faircode/email/EmailService.java @@ -312,7 +312,8 @@ public class EmailService implements AutoCloseable { DB db = DB.getInstance(context); 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); + EntityLog.log(context, EntityLog.Type.Account, account, + "token refreshed=" + accounts + "/" + identities); } }, account.certificate_alias, account.fingerprint); @@ -328,7 +329,8 @@ public class EmailService implements AutoCloseable { public void onPasswordChanged(Context context, String newPassword) { DB db = DB.getInstance(context); int count = db.identity().setIdentityPassword(identity.id, newPassword); - EntityLog.log(context, identity.email + " token refreshed=" + count); + EntityLog.log(context, EntityLog.Type.Account, identity.account, null, null, + identity.email + " token refreshed=" + count); } },