Trim user names

pull/170/head
M66B 5 years ago
parent 57e99c05d0
commit 9ad8d7c39b

@ -502,7 +502,7 @@ public class FragmentAccount extends FragmentBase {
args.putString("port", etPort.getText().toString()); args.putString("port", etPort.getText().toString());
args.putInt("auth", auth); args.putInt("auth", auth);
args.putString("provider", provider); args.putString("provider", provider);
args.putString("user", etUser.getText().toString()); args.putString("user", etUser.getText().toString().trim());
args.putString("password", tilPassword.getEditText().getText().toString()); args.putString("password", tilPassword.getEditText().getText().toString());
args.putString("realm", etRealm.getText().toString()); args.putString("realm", etRealm.getText().toString());
args.putString("fingerprint", cbTrust.isChecked() ? (String) cbTrust.getTag() : null); args.putString("fingerprint", cbTrust.isChecked() ? (String) cbTrust.getTag() : null);
@ -711,7 +711,7 @@ public class FragmentAccount extends FragmentBase {
args.putString("port", etPort.getText().toString()); args.putString("port", etPort.getText().toString());
args.putInt("auth", auth); args.putInt("auth", auth);
args.putString("provider", provider); args.putString("provider", provider);
args.putString("user", etUser.getText().toString()); args.putString("user", etUser.getText().toString().trim());
args.putString("password", tilPassword.getEditText().getText().toString()); args.putString("password", tilPassword.getEditText().getText().toString());
args.putString("realm", etRealm.getText().toString()); args.putString("realm", etRealm.getText().toString());
args.putString("fingerprint", cbTrust.isChecked() ? (String) cbTrust.getTag() : null); args.putString("fingerprint", cbTrust.isChecked() ? (String) cbTrust.getTag() : null);

@ -522,7 +522,7 @@ public class FragmentIdentity extends FragmentBase {
args.putString("port", etPort.getText().toString()); args.putString("port", etPort.getText().toString());
args.putInt("auth", auth); args.putInt("auth", auth);
args.putString("provider", provider); args.putString("provider", provider);
args.putString("user", etUser.getText().toString()); args.putString("user", etUser.getText().toString().trim());
args.putString("password", tilPassword.getEditText().getText().toString()); args.putString("password", tilPassword.getEditText().getText().toString());
args.putString("realm", etRealm.getText().toString()); args.putString("realm", etRealm.getText().toString());
args.putString("fingerprint", cbTrust.isChecked() ? (String) cbTrust.getTag() : null); args.putString("fingerprint", cbTrust.isChecked() ? (String) cbTrust.getTag() : null);

Loading…
Cancel
Save