From 779946bbee3560bab84a3a5fb80817db017aa303 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 17 Nov 2025 14:18:24 +0200 Subject: [PATCH] update autocomplete props, rm textContentType --- src/screens/Login/LoginForm.tsx | 3 +-- src/screens/Login/SetNewPasswordForm.tsx | 4 ++-- src/screens/Settings/components/ChangePasswordDialog.tsx | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/screens/Login/LoginForm.tsx b/src/screens/Login/LoginForm.tsx index 0d8c1b9668..212059986e 100644 --- a/src/screens/Login/LoginForm.tsx +++ b/src/screens/Login/LoginForm.tsx @@ -232,11 +232,10 @@ export const LoginForm = ({ label={_(msg`Password`)} autoCapitalize="none" autoCorrect={false} - autoComplete="password" + autoComplete="current-password" returnKeyType="done" enablesReturnKeyAutomatically={true} secureTextEntry={true} - textContentType="password" clearButtonMode="while-editing" onChangeText={v => { passwordValueRef.current = v diff --git a/src/screens/Login/SetNewPasswordForm.tsx b/src/screens/Login/SetNewPasswordForm.tsx index be72b558bc..1bcc588011 100644 --- a/src/screens/Login/SetNewPasswordForm.tsx +++ b/src/screens/Login/SetNewPasswordForm.tsx @@ -147,10 +147,10 @@ export const SetNewPasswordForm = ({ label={_(msg`Enter a password`)} autoCapitalize="none" autoCorrect={false} - autoComplete="password" returnKeyType="done" secureTextEntry={true} - textContentType="password" + autoComplete="new-password" + passwordRules="minlength: 8;" clearButtonMode="while-editing" value={password} onChangeText={setPassword} diff --git a/src/screens/Settings/components/ChangePasswordDialog.tsx b/src/screens/Settings/components/ChangePasswordDialog.tsx index 4b09dffa65..463aa2fbe2 100644 --- a/src/screens/Settings/components/ChangePasswordDialog.tsx +++ b/src/screens/Settings/components/ChangePasswordDialog.tsx @@ -211,6 +211,7 @@ function Inner() { secureTextEntry autoCapitalize="none" autoComplete="new-password" + passwordRules="minlength: 8;" />