Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More error message standardization #6

Closed
ramoncardena opened this issue Dec 2, 2018 · 1 comment
Closed

More error message standardization #6

ramoncardena opened this issue Dec 2, 2018 · 1 comment

Comments

@ramoncardena
Copy link

There are some error messages to standardize as words and dashes:

app/models/userAccess.js:

     type: String,
       validate: {
         validator: validator.isEmail,
-        message: 'Not a valid email address'
+        message: 'EMAIL_IS_NOT_VALID'
       },
       lowercase: true,
       required: true

app/models/users.js:

       type: String,
       validate: {
         validator: validator.isEmail,
-        message: 'Not a valid email address'
+        message: 'EMAIL_IS_NOT_VALID'
       },
       lowercase: true,
       unique: true,

app/models/forgotPassword.js:

       type: String,
       validate: {
         validator: validator.isEmail,
-        message: 'Not a valid email address'
+        message: 'EMAIL_IS_NOT_VALID'
       },
       lowercase: true,
       required: true
@davellanedam
Copy link
Owner

Hi Ramon, fixed in v.1.2.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants