mirror of https://github.com/M66B/FairEmail.git
Updated identity OAuth token on updating account token
This commit is contained in:
parent
cb1e0746c3
commit
4e434a399a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue