1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 17:57:16 +00:00

Link token refresh to account log

This commit is contained in:
M66B 2021-08-16 14:36:12 +02:00
parent 21c8c0ee5c
commit 7a65030c0b

View file

@ -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);
}
},