about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/view/com/auth/login/Login.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/view/com/auth/login/Login.tsx b/src/view/com/auth/login/Login.tsx
index c76c33938..c277bfb9e 100644
--- a/src/view/com/auth/login/Login.tsx
+++ b/src/view/com/auth/login/Login.tsx
@@ -402,7 +402,9 @@ const LoginForm = ({
             blurOnSubmit={false} // prevents flickering due to onSubmitEditing going to next field
             keyboardAppearance={theme.colorScheme}
             value={identifier}
-            onChangeText={str => setIdentifier((str || '').toLowerCase())}
+            onChangeText={str =>
+              setIdentifier((str || '').toLowerCase().trim())
+            }
             editable={!isProcessing}
             accessibilityLabel="Username or email address"
             accessibilityHint="Input the username or email address you used at signup"