Simplify/improve updating passwords

This commit is contained in:
M66B
2019-10-11 15:32:03 +02:00
parent 1e9a77e249
commit 2f771c6fa5
5 changed files with 25 additions and 24 deletions

View File

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