diff --git a/src/CONST.ts b/src/CONST.ts index 61528931b7c6..9acb6f18238b 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -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}$/,