Updated identity OAuth token on updating account token

This commit is contained in:
M66B 2021-02-17 10:28:50 +01:00
parent cb1e0746c3
commit 4e434a399a
1 changed files with 3 additions and 2 deletions

View File

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