Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

feat(mobile): remove password confirmation requirment

daniel31x137419eb67ef57
diff --git a/apps/mobile/components/ActionSheets/SignUpSheet.tsx b/apps/mobile/components/ActionSheets/SignUpSheet.tsx
index e5f09ac1..eefe0f55 100644
--- a/apps/mobile/components/ActionSheets/SignUpSheet.tsx
+++ b/apps/mobile/components/ActionSheets/SignUpSheet.tsx
@@ -57,7 +57,6 @@ export default function SignUpSheet() {
username: "",
email: "",
password: "",
- passwordConfirmation: "",
instance: auth.instance || cloudInstance,
});
@@ -101,15 +100,8 @@ export default function SignUpSheet() {
"Sign up through the web",
"This instance needs to be updated to support mobile sign-up. You can sign up through the web, then come back here to log in."
);
- else if (
- !name ||
- !form.password ||
- !form.passwordConfirmation ||
- (emailSignUp ? !email : !username)
- )
+ else if (!name || !form.password || (emailSignUp ? !email : !username))
return Alert.alert("Error", "Please fill all fields");
- else if (form.password !== form.passwordConfirmation)
- return Alert.alert("Error", "Passwords don't match");
else if (form.password.length < 8)
return Alert.alert("Error", "Password must be at least 8 characters");
@@ -235,17 +227,6 @@ export default function SignUpSheet() {
value={form.password}
onChangeText={(text) => setForm({ ...form, password: text })}
/>
- <Input
- className="w-full text-xl p-3 leading-tight h-12"
- textAlignVertical="center"
- placeholder="Confirm Password"
- secureTextEntry
- autoCapitalize="none"
- value={form.passwordConfirmation}
- onChangeText={(text) =>
- setForm({ ...form, passwordConfirmation: text })
- }
- />
{instance === cloudInstance && (
<TouchableOpacity
activeOpacity={0.75}