Created
May 3, 2011 22:02
-
-
Save csanz/954359 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Yo Brian - | |
| Re: https://github.com/bnoguchi/mongoose-auth/blob/master/lib/modules/password/everyauth.js#L6-8 | |
| What do you think about something more like this for the error handling: | |
| validation fields | |
| /models/user/validation.js | |
| { | |
| "name": | |
| { | |
| "missing" : 1, | |
| "size" : "<100" | |
| }, | |
| "email": | |
| { | |
| "missing" : 1, | |
| "match" : "(.*)@(.*)\.(com|net)" | |
| } | |
| That way you can configure any fields inside your model. Perhaps keep this close to the schema file of the object. | |
| Thoughts? | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment