Trim username by setup

This commit is contained in:
Bastian Wilhelm 2022-01-13 19:55:24 +01:00
parent 343ead3fda
commit 1efec7828f
2 changed files with 3 additions and 3 deletions

View file

@ -550,7 +550,7 @@ public class AccountSetupIncoming extends K9Activity implements OnClickListener
* Set the username and password for the outgoing settings to the username and
* password the user just set for incoming.
*/
String username = mUsernameView.getText().toString();
String username = mUsernameView.getText().toString().trim();
String password = null;
String clientCertificateAlias = null;
@ -579,7 +579,7 @@ public class AccountSetupIncoming extends K9Activity implements OnClickListener
try {
ConnectionSecurity connectionSecurity = getSelectedSecurity();
String username = mUsernameView.getText().toString();
String username = mUsernameView.getText().toString().trim();
String password = null;
String clientCertificateAlias = null;

View file

@ -491,7 +491,7 @@ public class AccountSetupOutgoing extends K9Activity implements OnClickListener,
clientCertificateAlias = mClientCertificateSpinner.getAlias();
}
if (mRequireLoginView.isChecked()) {
username = mUsernameView.getText().toString();
username = mUsernameView.getText().toString().trim();
authType = getSelectedAuthType();
if (AuthType.EXTERNAL != authType) {