mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 06:08:31 +02:00
Simplify/improve updating passwords
This commit is contained in:
@@ -707,6 +707,14 @@ public class FragmentIdentity extends FragmentBase {
|
||||
try {
|
||||
db.beginTransaction();
|
||||
|
||||
if (identity != null && !identity.password.equals(password)) {
|
||||
int count = db.identity().setIdentityPassword(
|
||||
identity.account,
|
||||
identity.user, password,
|
||||
identity.host);
|
||||
Log.i("Updated passwords=" + count);
|
||||
}
|
||||
|
||||
boolean update = (identity != null);
|
||||
if (identity == null)
|
||||
identity = new EntityIdentity();
|
||||
|
||||
Reference in New Issue
Block a user