File tree 3 files changed +5
-5
lines changed
lib/src/main/java/com/auth0/android/lock/views
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ public Object getActionEvent() {
71
71
72
72
@ NonNull
73
73
private String getUsernameOrEmail () {
74
- return emailInput .getText ();
74
+ return emailInput .getText (). trim () ;
75
75
}
76
76
77
77
@ Override
Original file line number Diff line number Diff line change @@ -174,10 +174,10 @@ private String getUsername() {
174
174
boolean usingDatabase = currentConnection == null && fallbackToDatabase ;
175
175
boolean usingOAuthEnterprise = currentConnection != null && !currentConnection .isActiveFlowEnabled ();
176
176
if (usingDatabase || usingOAuthEnterprise ) {
177
- return emailInput .getText ();
177
+ return emailInput .getText (). trim () ;
178
178
} else {
179
179
//Using RO: we get the Username from the "second screen".
180
- return usernameInput .getText ();
180
+ return usernameInput .getText (). trim () ;
181
181
}
182
182
}
183
183
Original file line number Diff line number Diff line change @@ -131,12 +131,12 @@ public Object getActionEvent() {
131
131
132
132
@ Nullable
133
133
private String getUsername () {
134
- return usernameInput .getVisibility () == VISIBLE ? usernameInput .getText () : null ;
134
+ return usernameInput .getVisibility () == VISIBLE ? usernameInput .getText (). trim () : null ;
135
135
}
136
136
137
137
@ NonNull
138
138
private String getEmail () {
139
- return emailInput .getText ();
139
+ return emailInput .getText (). trim () ;
140
140
}
141
141
142
142
@ NonNull
You can’t perform that action at this time.
0 commit comments