mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-08 10:03:51 +02:00
PSL refactoring
This commit is contained in:
@@ -1167,8 +1167,8 @@ public class FragmentAccount extends FragmentBase {
|
||||
db.beginTransaction();
|
||||
|
||||
if (account != null && !account.password.equals(password)) {
|
||||
String domain = UriHelper.getParentDomain(context, account.host);
|
||||
String match = (Objects.equals(account.host, domain) ? account.host : "%." + domain);
|
||||
String root = UriHelper.getRootDomain(context, account.host);
|
||||
String match = (root == null || root.equals(account.host) ? account.host : "%." + root);
|
||||
int count = db.identity().setIdentityPassword(account.id, account.user, password, auth, match);
|
||||
Log.i("Updated passwords=" + count + " match=" + match);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user