mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 15:17:03 +02:00
Allow empty username
This commit is contained in:
@@ -365,7 +365,7 @@ public class FragmentPop extends FragmentBase {
|
||||
throw new IllegalArgumentException(context.getString(R.string.title_no_host));
|
||||
if (TextUtils.isEmpty(port))
|
||||
port = (encryption == EmailService.ENCRYPTION_SSL ? "995" : "110");
|
||||
if (TextUtils.isEmpty(user) && !should)
|
||||
if (TextUtils.isEmpty(user) && !insecure && !should)
|
||||
throw new IllegalArgumentException(context.getString(R.string.title_no_user));
|
||||
if (synchronize && TextUtils.isEmpty(password) && !insecure && !should)
|
||||
throw new IllegalArgumentException(context.getString(R.string.title_no_password));
|
||||
|
||||
Reference in New Issue
Block a user