Allow spaces in password

pull/85/head
Beaudan 6 years ago
parent a1255dd31e
commit 415d0858e8

@ -20,7 +20,7 @@ const validatePassword = (phrase, i18n) => {
} }
// Restrict characters to letters, numbers and symbols // Restrict characters to letters, numbers and symbols
const characterRegex = /^[a-zA-Z0-9-!()._`~@#$%^&*+=[\]{}|<>,;:]+$/ const characterRegex = /^[a-zA-Z0-9-!()._`~@#$%^&*+=[\]{}|<>,;: ]+$/
if (!characterRegex.test(trimmed)) { if (!characterRegex.test(trimmed)) {
return i18n ? i18n('passwordCharacterError') : ERRORS.CHARACTER; return i18n ? i18n('passwordCharacterError') : ERRORS.CHARACTER;
} }

Loading…
Cancel
Save