Fixed updating identity passwords for simple domain names

pull/172/head
M66B 5 years ago
parent 966188bbb6
commit 15054c89e1

@ -987,10 +987,9 @@ public class FragmentAccount extends FragmentBase {
db.beginTransaction(); db.beginTransaction();
if (account != null && !account.password.equals(password)) { if (account != null && !account.password.equals(password)) {
String match = "%" + ConnectionHelper.getDomain(account.host);
int count = db.identity().setIdentityPassword( int count = db.identity().setIdentityPassword(
account.id, account.id, account.user, password, match);
account.user, password,
"%." + ConnectionHelper.getDomain(account.host));
Log.i("Updated passwords=" + count); Log.i("Updated passwords=" + count);
} }

Loading…
Cancel
Save