setPassword Mutation
Sets the user’s password from the token sent by email using the RequestPasswordReset mutation.
Triggers the following webhook events:
- ACCOUNT_CONFIRMED (async): Called if the account was not previously confirmed.
- CUSTOMER_UPDATED (async): Called if a customer account was confirmed.
- STAFF_UPDATED (async): Called if a staff account was confirmed.
Applied directives
@webhookEventsInfo(asyncEvents: [ACCOUNT_CONFIRMED, CUSTOMER_UPDATED, STAFF_UPDATED], syncEvents: [])
setPassword(email: String!, password: String!, token: String!): SetPassword
Returns
Show return type
type SetPassword {
token: String
refreshToken: String
csrfToken: String
user: User
accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.")
errors: [AccountError!]!
}Arguments
email · String!
Email of a user.
password
password · String!
Password of a user.
token
token · String!
A one-time token required to set the password.
Schema: Saleor 3.23.43. Download SDL.