@contember/engine-tenant-api 2.1.0-alpha.18 → 2.1.0-alpha.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/development/src/resolvers/mutation/person/SignInMutationResolver.cjs +1 -1
- package/dist/development/src/resolvers/mutation/person/SignInMutationResolver.cjs.map +1 -1
- package/dist/development/src/resolvers/mutation/person/SignInMutationResolver.js +1 -1
- package/dist/development/src/resolvers/mutation/person/SignInMutationResolver.js.map +1 -1
- package/dist/production/src/resolvers/mutation/person/SignInMutationResolver.cjs +1 -1
- package/dist/production/src/resolvers/mutation/person/SignInMutationResolver.cjs.map +1 -1
- package/dist/production/src/resolvers/mutation/person/SignInMutationResolver.js +1 -1
- package/dist/production/src/resolvers/mutation/person/SignInMutationResolver.js.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +12 -12
- package/src/resolvers/mutation/person/SignInMutationResolver.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contember/engine-tenant-api",
|
|
3
|
-
"version": "2.1.0-alpha.
|
|
3
|
+
"version": "2.1.0-alpha.19",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/production/index.js",
|
|
6
6
|
"typings": "./dist/types/index.d.ts",
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
"generate": "gql-gen --config graphql.codegen.yml"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@contember/authorization": "2.1.0-alpha.
|
|
30
|
-
"@contember/config-loader": "2.1.0-alpha.
|
|
31
|
-
"@contember/database": "2.1.0-alpha.
|
|
32
|
-
"@contember/database-migrations": "2.1.0-alpha.
|
|
33
|
-
"@contember/dic": "2.1.0-alpha.
|
|
34
|
-
"@contember/graphql-utils": "2.1.0-alpha.
|
|
35
|
-
"@contember/logger": "2.1.0-alpha.
|
|
36
|
-
"@contember/schema": "2.1.0-alpha.
|
|
37
|
-
"@contember/schema-utils": "2.1.0-alpha.
|
|
38
|
-
"@contember/typesafe": "2.1.0-alpha.
|
|
29
|
+
"@contember/authorization": "2.1.0-alpha.19",
|
|
30
|
+
"@contember/config-loader": "2.1.0-alpha.19",
|
|
31
|
+
"@contember/database": "2.1.0-alpha.19",
|
|
32
|
+
"@contember/database-migrations": "2.1.0-alpha.19",
|
|
33
|
+
"@contember/dic": "2.1.0-alpha.19",
|
|
34
|
+
"@contember/graphql-utils": "2.1.0-alpha.19",
|
|
35
|
+
"@contember/logger": "2.1.0-alpha.19",
|
|
36
|
+
"@contember/schema": "2.1.0-alpha.19",
|
|
37
|
+
"@contember/schema-utils": "2.1.0-alpha.19",
|
|
38
|
+
"@contember/typesafe": "2.1.0-alpha.19",
|
|
39
39
|
"@graphql-tools/utils": "^10.5.5",
|
|
40
40
|
"graphql-tag": "^2.12.6",
|
|
41
41
|
"jose": "^5.8.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"otpauth": "^9.3.4"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@contember/database-tester": "2.1.0-alpha.
|
|
49
|
+
"@contember/database-tester": "2.1.0-alpha.19",
|
|
50
50
|
"@graphql-tools/schema": "^10.0.7",
|
|
51
51
|
"@types/mustache": "^4.2.5",
|
|
52
52
|
"@types/node": "^20.17.22",
|
|
@@ -41,7 +41,7 @@ export class SignInMutationResolver implements MutationResolvers {
|
|
|
41
41
|
|
|
42
42
|
if (!response.ok) {
|
|
43
43
|
const configuration = await context.db.queryHandler.fetch(new ConfigurationQuery())
|
|
44
|
-
if (!configuration.login.revealUserExists && ['NO_PASSWORD_SET', 'NO_PASSWORD_SET', 'PERSON_DISABLED', 'INVALID_PASSWORD'].includes(response.error)) {
|
|
44
|
+
if (!configuration.login.revealUserExists && ['NO_PASSWORD_SET', 'NO_PASSWORD_SET', 'PERSON_DISABLED', 'INVALID_PASSWORD', 'UNKNOWN_EMAIL'].includes(response.error)) {
|
|
45
45
|
// if the user does not exist, we don't want to reveal that, so we return a generic error
|
|
46
46
|
return createErrorResponse('INVALID_CREDENTIALS', 'Invalid credentials')
|
|
47
47
|
}
|