You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
869 B

  1. const PASSWORD_MIN = 6;
  2. const PASSWORD_MAX = 30;
  3. const PASSWORD_MAX_ERROR = `Password length must be less than or equal to ${PASSWORD_MAX} characters long`;
  4. const PASSWORD_MIN_ERROR = `Password length must be at least ${PASSWORD_MIN} characters long`;
  5. const USERNAME_EMAIL_ERROR = 'Email must be a valid email address';
  6. const USERNAME_PASSWORD_COMBINATION_ERROR = 'These credentials do not match our records.';
  7. const INTERNAL_SERVER_ERROR = 'Something went wrong! Please try again.';
  8. const SUCCESSFULLY_LOGGED_IN = 'You have successfully logged in.';
  9. const FETCH_INFO_ERROR_MESSAGE = 'Could not fetch your account information';
  10. module.exports = {
  11. PASSWORD_MAX,
  12. PASSWORD_MIN,
  13. PASSWORD_MAX_ERROR,
  14. PASSWORD_MIN_ERROR,
  15. USERNAME_EMAIL_ERROR,
  16. USERNAME_PASSWORD_COMBINATION_ERROR,
  17. INTERNAL_SERVER_ERROR,
  18. SUCCESSFULLY_LOGGED_IN,
  19. FETCH_INFO_ERROR_MESSAGE,
  20. };