feat: Add resetPassword mutation

This commit is contained in:
Faruk AYDIN
2023-02-19 11:04:17 +01:00
parent 8ea176b5f0
commit 9dbfcf4262
4 changed files with 59 additions and 1 deletions

View File

@@ -51,6 +51,7 @@ type Mutation {
createUser(input: CreateUserInput): User
updateUser(input: UpdateUserInput): User
forgotPassword(input: ForgotPasswordInput): Boolean
resetPassword(input: ResetPasswordInput): Boolean
login(input: LoginInput): Auth
}
@@ -313,7 +314,12 @@ input UpdateUserInput {
}
input ForgotPasswordInput {
email: String
email: String!
}
input ResetPasswordInput {
token: String!
password: String!
}
input LoginInput {