forked from Archives/Athou_commafeed
make password match rule reusable
This commit is contained in:
@@ -32,7 +32,7 @@ export function PasswordResetPage() {
|
||||
},
|
||||
validate: {
|
||||
password: validationRules.password,
|
||||
passwordConfirmation: (value, values) => (value === values.password ? null : _(msg`Passwords do not match`)),
|
||||
passwordConfirmation: (value, values) => validationRules.passwordConfirmation(value, values.password),
|
||||
},
|
||||
validateInputOnChange: true,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user