diff options
Diffstat (limited to 'src/constants')
| -rw-r--r-- | src/constants/api.ts | 1 | ||||
| -rw-r--r-- | src/constants/constants.ts | 2 | ||||
| -rw-r--r-- | src/constants/regex.ts | 6 |
3 files changed, 9 insertions, 0 deletions
diff --git a/src/constants/api.ts b/src/constants/api.ts index d3047e55..5a752e7b 100644 --- a/src/constants/api.ts +++ b/src/constants/api.ts @@ -24,6 +24,7 @@ export const FOLLOWING_ENDPOINT: string = API_URL + 'following/'; export const ALL_USERS_ENDPOINT: string = API_URL + 'users/'; export const REPORT_ISSUE_ENDPOINT: string = API_URL + 'report/'; export const BLOCK_USER_ENDPOINT: string = API_URL + 'block/'; +export const PASSWORD_RESET_ENDPOINT: string = API_URL + 'password-reset/'; // Register Social Link (Non-integrated) export const LINK_SNAPCHAT_ENDPOINT: string = API_URL + 'link-sc/'; diff --git a/src/constants/constants.ts b/src/constants/constants.ts index c14068c1..8832cec3 100644 --- a/src/constants/constants.ts +++ b/src/constants/constants.ts @@ -97,7 +97,9 @@ export const defaultMoments: Array<string> = [ 'Activity', ]; +export const TAGG_CUSTOMER_SUPPORT: string = 'support@tagg.id'; export const BROWSABLE_SOCIAL_URLS: Record<string, string> = { Instagram: 'https://instagram.com/', Twitter: 'https://twitter.com/', }; + diff --git a/src/constants/regex.ts b/src/constants/regex.ts index 01fd9a2d..6ab045bd 100644 --- a/src/constants/regex.ts +++ b/src/constants/regex.ts @@ -56,3 +56,9 @@ export const genderRegex: RegExp = /^$|^[A-Za-z\- ]{2,20}$/; * */ export const phoneRegex: RegExp = /([0-9]{10})/; + +/** + * The code regex has the following constraints + * - must be 6 digits + */ +export const codeRegex: RegExp = /([0-9]{6})/; |
