Skip to content

Commit

Permalink
Merge pull request #140 from AshfordN/patch-2
Browse files Browse the repository at this point in the history
Update index.js
  • Loading branch information
saintedlama authored Aug 8, 2017
2 parents 352b35f + 8f8a6b3 commit 3985bbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ module.exports = function(schema, options) {
options.errorMessages.AttemptTooSoonError = options.errorMessages.AttemptTooSoonError || 'Account is currently locked. Try again later';
options.errorMessages.TooManyAttemptsError = options.errorMessages.TooManyAttemptsError || 'Account locked due to too many failed login attempts';
options.errorMessages.NoSaltValueStoredError = options.errorMessages.NoSaltValueStoredError || 'Authentication not possible. No salt value stored';
options.errorMessages.IncorrectPasswordError = options.errorMessages.IncorrectPasswordError || 'Password or username are incorrect';
options.errorMessages.IncorrectUsernameError = options.errorMessages.IncorrectUsernameError || 'Password or username are incorrect';
options.errorMessages.IncorrectPasswordError = options.errorMessages.IncorrectPasswordError || 'Password or username is incorrect';
options.errorMessages.IncorrectUsernameError = options.errorMessages.IncorrectUsernameError || 'Password or username is incorrect';
options.errorMessages.MissingUsernameError = options.errorMessages.MissingUsernameError|| 'No username was given';
options.errorMessages.UserExistsError = options.errorMessages.UserExistsError|| 'A user with the given username is already registered';

Expand Down Expand Up @@ -295,4 +295,4 @@ module.exports = function(schema, options) {
};
};

module.exports.errors = errors;
module.exports.errors = errors;

0 comments on commit 3985bbc

Please sign in to comment.