@@ -215,10 +215,10 @@ const load = parseGraphQLSchema => {
215
215
parseGraphQLSchema . addGraphQLType ( logOutMutation . type , true , true ) ;
216
216
parseGraphQLSchema . addGraphQLMutation ( 'logOut' , logOutMutation , true , true ) ;
217
217
218
- const requestResetPasswordMutation = mutationWithClientMutationId ( {
219
- name : 'RequestResetPassword ' ,
218
+ const resetPasswordMutation = mutationWithClientMutationId ( {
219
+ name : 'ResetPassword ' ,
220
220
description :
221
- 'The requestResetPassword mutation can be used to reset the password of an existing user.' ,
221
+ 'The resetPassword mutation can be used to reset the password of an existing user.' ,
222
222
inputFields : {
223
223
email : {
224
224
descriptions : 'Email of the user that should receive the reset email' ,
@@ -247,23 +247,14 @@ const load = parseGraphQLSchema => {
247
247
} ,
248
248
} ) ;
249
249
250
- parseGraphQLSchema . addGraphQLType (
251
- requestResetPasswordMutation . args . input . type . ofType ,
252
- true ,
253
- true
254
- ) ;
255
- parseGraphQLSchema . addGraphQLType ( requestResetPasswordMutation . type , true , true ) ;
256
- parseGraphQLSchema . addGraphQLMutation (
257
- 'requestResetPassword' ,
258
- requestResetPasswordMutation ,
259
- true ,
260
- true
261
- ) ;
250
+ parseGraphQLSchema . addGraphQLType ( resetPasswordMutation . args . input . type . ofType , true , true ) ;
251
+ parseGraphQLSchema . addGraphQLType ( resetPasswordMutation . type , true , true ) ;
252
+ parseGraphQLSchema . addGraphQLMutation ( 'resetPassword' , resetPasswordMutation , true , true ) ;
262
253
263
- const resetPasswordMutation = mutationWithClientMutationId ( {
264
- name : 'ResetPassword ' ,
254
+ const confirmResetPasswordMutation = mutationWithClientMutationId ( {
255
+ name : 'ConfirmResetPassword ' ,
265
256
description :
266
- 'The resetPassword mutation can be used to reset the password of an existing user.' ,
257
+ 'The confirmResetPassword mutation can be used to reset the password of an existing user.' ,
267
258
inputFields : {
268
259
username : {
269
260
descriptions : 'Username of the user that have received the reset email' ,
@@ -302,9 +293,18 @@ const load = parseGraphQLSchema => {
302
293
} ,
303
294
} ) ;
304
295
305
- parseGraphQLSchema . addGraphQLType ( resetPasswordMutation . args . input . type . ofType , true , true ) ;
306
- parseGraphQLSchema . addGraphQLType ( resetPasswordMutation . type , true , true ) ;
307
- parseGraphQLSchema . addGraphQLMutation ( 'resetPassword' , resetPasswordMutation , true , true ) ;
296
+ parseGraphQLSchema . addGraphQLType (
297
+ confirmResetPasswordMutation . args . input . type . ofType ,
298
+ true ,
299
+ true
300
+ ) ;
301
+ parseGraphQLSchema . addGraphQLType ( confirmResetPasswordMutation . type , true , true ) ;
302
+ parseGraphQLSchema . addGraphQLMutation (
303
+ 'confirmResetPassword' ,
304
+ confirmResetPasswordMutation ,
305
+ true ,
306
+ true
307
+ ) ;
308
308
309
309
const sendVerificationEmailMutation = mutationWithClientMutationId ( {
310
310
name : 'SendVerificationEmail' ,
0 commit comments