mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
Allow spaces in password
This commit is contained in:
parent
a1255dd31e
commit
415d0858e8
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ const validatePassword = (phrase, i18n) => {
|
|||
}
|
||||
|
||||
// Restrict characters to letters, numbers and symbols
|
||||
const characterRegex = /^[a-zA-Z0-9-!()._`~@#$%^&*+=[\]{}|<>,;:]+$/
|
||||
const characterRegex = /^[a-zA-Z0-9-!()._`~@#$%^&*+=[\]{}|<>,;: ]+$/
|
||||
if (!characterRegex.test(trimmed)) {
|
||||
return i18n ? i18n('passwordCharacterError') : ERRORS.CHARACTER;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue