From profile is secure

pull/215/head
M66B 6 months ago
parent 7987ac272a
commit 5d82358663

@ -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…
Cancel
Save