mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-28 02:37:16 +00:00
Link token refresh to account log
This commit is contained in:
parent
21c8c0ee5c
commit
7a65030c0b
1 changed files with 4 additions and 2 deletions
|
@ -312,7 +312,8 @@ public class EmailService implements AutoCloseable {
|
||||||
DB db = DB.getInstance(context);
|
DB db = DB.getInstance(context);
|
||||||
int accounts = db.account().setAccountPassword(account.id, newPassword);
|
int accounts = db.account().setAccountPassword(account.id, newPassword);
|
||||||
int identities = db.identity().setIdentityPassword(account.id, account.user, newPassword, account.auth_type);
|
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);
|
account.certificate_alias, account.fingerprint);
|
||||||
|
@ -328,7 +329,8 @@ public class EmailService implements AutoCloseable {
|
||||||
public void onPasswordChanged(Context context, String newPassword) {
|
public void onPasswordChanged(Context context, String newPassword) {
|
||||||
DB db = DB.getInstance(context);
|
DB db = DB.getInstance(context);
|
||||||
int count = db.identity().setIdentityPassword(identity.id, newPassword);
|
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);
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue