Skip to content

Commit

Permalink
fix(theme): remove password username check (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
oyo authored Apr 18, 2024
1 parent ceb8d81 commit 6f20ac3
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ const Messages = {
HAS_UPPER: 'contains upper case characters [A-Z]',
HAS_NUMBER: 'contains numbers [0-9]',
HAS_SPECIAL: 'contains characters other than [a-z] [A-Z] [0-9]',
NOT_USERNAME: 'is not equal to your username',
OK_CONFIRM: 'confirmation and password are equal',
}
}
Expand All @@ -150,7 +149,6 @@ class Validator {
['HAS_UPPER', /[A-Z]/],
['HAS_NUMBER', /\d/],
['HAS_SPECIAL', /[^a-zA-Z0-9]/],
['NOT_USERNAME', (expr) => expr !== '' && expr !== State.getInstance().atts.username],
['OK_CONFIRM', (expr) => expr !== '' && expr === State.getInstance().atts.confirm],
]

Expand Down

0 comments on commit 6f20ac3

Please sign in to comment.