remove logs. missed some errors

This commit is contained in:
Riley Davis
2017-01-06 13:11:37 -07:00
parent 01db900c40
commit a3bb8e2f41
3 changed files with 9 additions and 14 deletions
+5
View File
@@ -23,6 +23,11 @@ const ErrMissingDisplay = new Error('A display name is required to create a user
ErrMissingDisplay.translation_key = 'DISPLAY_NAME_REQUIRED';
ErrMissingDisplay.status = 400;
// ErrMissingToken is returned in the event that the password reset is requested
// without a token.
const ErrMissingToken = new Error('token is required');
ErrMissingToken.status = 400;
// ErrContainsProfanity is returned in the event that the middleware detects
// profanity/wordlisted words in the payload.
const ErrContainsProfanity = new Error('Suspected profanity. If you think this in error, please let us know!');