mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-01 09:16:00 +00:00
From profile is secure
This commit is contained in:
parent
7987ac272a
commit
5d82358663
2 changed files with 6 additions and 1 deletions
|
@ -1488,6 +1488,10 @@ public class EmailProvider implements Parcelable {
|
|||
});
|
||||
}
|
||||
|
||||
public boolean isSecure() {
|
||||
return (score >= 100);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (obj instanceof Server) {
|
||||
|
|
|
@ -588,7 +588,7 @@ public class FragmentQuickSetup extends FragmentBase {
|
|||
|
||||
account.host = provider.imap.host;
|
||||
account.encryption = aencryption;
|
||||
account.insecure = BuildConfig.PLAY_STORE_RELEASE;
|
||||
account.insecure = (BuildConfig.PLAY_STORE_RELEASE && !provider.imap.isSecure());
|
||||
account.port = provider.imap.port;
|
||||
account.auth_type = AUTH_TYPE_PASSWORD;
|
||||
account.user = user;
|
||||
|
@ -638,6 +638,7 @@ public class FragmentQuickSetup extends FragmentBase {
|
|||
|
||||
identity.host = provider.smtp.host;
|
||||
identity.encryption = iencryption;
|
||||
identity.insecure = (BuildConfig.PLAY_STORE_RELEASE && !provider.smtp.isSecure());
|
||||
identity.port = provider.smtp.port;
|
||||
identity.auth_type = AUTH_TYPE_PASSWORD;
|
||||
identity.user = user;
|
||||
|
|
Loading…
Reference in a new issue