Skip to content
Snippets Groups Projects
Commit ab3a4b25 authored by Sebastian Mihalache's avatar Sebastian Mihalache
Browse files

feat(components-faraday): update password match message

parent 9839658e
No related branches found
No related tags found
1 merge request!14Sprint #15
...@@ -92,7 +92,7 @@ export const passwordValidator = values => { ...@@ -92,7 +92,7 @@ export const passwordValidator = values => {
if (!values.confirmPassword) { if (!values.confirmPassword) {
errors.confirmPassword = 'Required' errors.confirmPassword = 'Required'
} else if (values.confirmPassword !== values.password) { } else if (values.confirmPassword !== values.password) {
errors.confirmPassword = 'Password mismatched' errors.confirmPassword = "Passwords don't match."
} }
return errors return errors
...@@ -106,7 +106,7 @@ export const changePasswordValidator = values => { ...@@ -106,7 +106,7 @@ export const changePasswordValidator = values => {
if (!values.newPassword) { if (!values.newPassword) {
errors.newPassword = 'Required' errors.newPassword = 'Required'
} else if (values.newPassword !== values.confirmNewPassword) { } else if (values.newPassword !== values.confirmNewPassword) {
errors.confirmNewPassword = 'Password mismatched' errors.confirmNewPassword = "Passwords don't match."
} }
return errors return errors
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment