mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 07:06:18 +02:00
Simplify/improve updating passwords
This commit is contained in:
@@ -346,13 +346,7 @@ public class ConnectionHelper {
|
||||
return null;
|
||||
}
|
||||
|
||||
static boolean isSameDomain(String host1, String host2) {
|
||||
String domain1 = getDomain(host1);
|
||||
String domain2 = getDomain(host2);
|
||||
return Objects.equals(domain1, domain2);
|
||||
}
|
||||
|
||||
private static String getDomain(String host) {
|
||||
static String getDomain(String host) {
|
||||
if (host != null) {
|
||||
String[] h = host.split("\\.");
|
||||
if (h.length >= 2)
|
||||
|
||||
Reference in New Issue
Block a user