Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

show error if password not confirmed

ammarahm-ed22c99ad23d5b
diff --git a/apps/mobile/src/components/VaultDialog/index.js b/apps/mobile/src/components/VaultDialog/index.js
index a1c1876f2..13f0e2df4 100644
--- a/apps/mobile/src/components/VaultDialog/index.js
+++ b/apps/mobile/src/components/VaultDialog/index.js
@@ -500,6 +500,11 @@ export class VaultDialog extends Component {
autoCapitalize="none"
testID={notesnook.ids.dialogs.vault.pwdAlt}
secureTextEntry
+ validationType="confirmPassword"
+ customValidator={() => this.password}
+ errorMessage="Passwords do not match."
+ onErrorCheck={(e) => null}
+ marginBottom={0}
onChangeText={(value) => {
this.confirmPassword = value;
if (value !== this.password) {