Allow empty username

This commit is contained in:
M66B
2021-03-11 10:18:04 +01:00
parent f912c9346f
commit c3e6d15bb6
4 changed files with 7 additions and 4 deletions

View File

@@ -721,7 +721,7 @@ public class FragmentIdentity extends FragmentBase {
port = "25";
else
port = "465";
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 && certificate == null && !should)
throw new IllegalArgumentException(context.getString(R.string.title_no_password));