Skip to content

Commit

Permalink
Merge pull request #54969 from Expensify/cmartins-useBase26
Browse files Browse the repository at this point in the history
[CP Staging] Update validateCode regex to allow base26 codes

(cherry picked from commit 8ee318d)

(CP triggered by luacmartins)
  • Loading branch information
luacmartins authored and OSBotify committed Jan 8, 2025
1 parent 72bd923 commit ce39aa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1467,8 +1467,8 @@ const CONST = {
// at least 8 characters, 1 capital letter, 1 lowercase number, 1 number
PASSWORD_COMPLEXITY_REGEX_STRING: '^(?=.*[A-Z])(?=.*[0-9])(?=.*[a-z]).{8,}$',

// 6 numeric digits
VALIDATE_CODE_REGEX_STRING: /^\d{6}$/,
// We allow either 6 digits for validated users or 9-character base26 for unvalidated users
VALIDATE_CODE_REGEX_STRING: /^\d{6}$|^[A-Z]{9}$/,

// 8 alphanumeric characters
RECOVERY_CODE_REGEX_STRING: /^[a-zA-Z0-9]{8}$/,
Expand Down

0 comments on commit ce39aa7

Please sign in to comment.