@accounts/password
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -541,3 +541,5 @@ "use strict"; | ||
if (!isPasswordValid) { | ||
throw new Error(this.options.errors.incorrectPassword); | ||
throw new Error(this.server.options.ambiguousErrorMessages | ||
? this.options.errors.invalidCredentials | ||
: this.options.errors.incorrectPassword); | ||
} | ||
@@ -544,0 +546,0 @@ return [2 /*return*/, foundUser]; |
{ | ||
"name": "@accounts/password", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"license": "MIT", | ||
@@ -27,3 +27,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@accounts/two-factor": "^0.6.0", | ||
"@accounts/two-factor": "^0.6.1", | ||
"bcryptjs": "^2.4.3", | ||
@@ -33,7 +33,7 @@ "lodash": "^4.17.11" | ||
"devDependencies": { | ||
"@accounts/server": "^0.6.0", | ||
"@accounts/types": "^0.6.0", | ||
"@accounts/server": "^0.6.1", | ||
"@accounts/types": "^0.6.1", | ||
"@types/bcryptjs": "2.4.2", | ||
"@types/jest": "23.3.7", | ||
"@types/lodash": "4.14.117", | ||
"@types/jest": "23.3.9", | ||
"@types/lodash": "4.14.118", | ||
"@types/node": "10.12.0", | ||
@@ -40,0 +40,0 @@ "jest": "23.6.0", |
@@ -455,3 +455,7 @@ import { trim, isEmpty, pick, isString, isPlainObject, find, includes, defer } from 'lodash'; | ||
if (!isPasswordValid) { | ||
throw new Error(this.options.errors.incorrectPassword); | ||
throw new Error( | ||
this.server.options.ambiguousErrorMessages | ||
? this.options.errors.invalidCredentials | ||
: this.options.errors.incorrectPassword | ||
); | ||
} | ||
@@ -458,0 +462,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
315845
2777
Updated@accounts/two-factor@^0.6.1