@lenne.tech/nest-server 10.4.1 → 10.4.2
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/server/modules/user/user.resolver.d.ts +1 -1
- package/dist/server/modules/user/user.resolver.js +11 -11
- package/dist/server/modules/user/user.resolver.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -2
- package/src/server/modules/user/user.resolver.ts +9 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lenne.tech/nest-server",
|
|
3
|
-
"version": "10.4.
|
|
3
|
+
"version": "10.4.2",
|
|
4
4
|
"description": "Modern, fast, powerful Node.js web framework in TypeScript based on Nest with a GraphQL API and a connection to MongoDB (or other databases).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node",
|
|
@@ -47,7 +47,6 @@
|
|
|
47
47
|
"test:ci": "NODE_ENV=local jest --config jest-e2e.json --ci --forceExit",
|
|
48
48
|
"test:watch": "NODE_ENV=local jest --watch",
|
|
49
49
|
"prepack": "npm run prestart:prod",
|
|
50
|
-
"prepare": "husky install",
|
|
51
50
|
"prepublishOnly": "npm run lint && npm run test:ci",
|
|
52
51
|
"preversion": "npm run lint",
|
|
53
52
|
"watch": "npm-watch"
|
|
@@ -79,15 +79,6 @@ export class UserResolver {
|
|
|
79
79
|
return await this.userService.getVerifiedState(token);
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
/**
|
|
83
|
-
* Request new password for user with email
|
|
84
|
-
*/
|
|
85
|
-
@Roles(RoleEnum.S_EVERYONE)
|
|
86
|
-
@Query(() => Boolean, { description: 'Request new password for user with email' })
|
|
87
|
-
async requestPasswordResetMail(@Args('email') email: string): Promise<boolean> {
|
|
88
|
-
return !!(await this.userService.sendPasswordResetMail(email));
|
|
89
|
-
}
|
|
90
|
-
|
|
91
82
|
// ===========================================================================
|
|
92
83
|
// Mutations
|
|
93
84
|
// ===========================================================================
|
|
@@ -128,6 +119,15 @@ export class UserResolver {
|
|
|
128
119
|
return !!(await this.userService.resetPassword(token, password));
|
|
129
120
|
}
|
|
130
121
|
|
|
122
|
+
/**
|
|
123
|
+
* Request new password for user with email
|
|
124
|
+
*/
|
|
125
|
+
@Roles(RoleEnum.S_EVERYONE)
|
|
126
|
+
@Mutation(() => Boolean, { description: 'Request new password for user with email' })
|
|
127
|
+
async requestPasswordResetMail(@Args('email') email: string): Promise<boolean> {
|
|
128
|
+
return !!(await this.userService.sendPasswordResetMail(email));
|
|
129
|
+
}
|
|
130
|
+
|
|
131
131
|
/**
|
|
132
132
|
* Update existing user
|
|
133
133
|
*/
|