Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix description for password reset mutations

fowczarek34a2d4fb433f
diff --git a/saleor/graphql/account/mutations/account.py b/saleor/graphql/account/mutations/account.py
index 386576da97..ac2247c60e 100644
--- a/saleor/graphql/account/mutations/account.py
+++ b/saleor/graphql/account/mutations/account.py
@@ -192,7 +192,10 @@ class AccountPasswordReset(BaseMutation):
)
class Meta:
- description = "Resets the customer's password."
+ description = (
+ "Sends an email with the account password change link "
+ "for the logged-in user."
+ )
@classmethod
def perform_mutation(cls, _root, info, **data):
diff --git a/saleor/graphql/account/mutations/base.py b/saleor/graphql/account/mutations/base.py
index 600e102073..2ba9725f43 100644
--- a/saleor/graphql/account/mutations/base.py
+++ b/saleor/graphql/account/mutations/base.py
@@ -42,7 +42,12 @@ def can_edit_address(user, address):
class SetPasswordInput(graphene.InputObjectType):
token = graphene.String(
- description="A one-time token required to set the password.", required=True
+ description=(
+ "A one-time token required to set the password. "
+ "Sent by email using PasswordReset mutation for if staff user "
+ "or AccountPasswordReset mutation for customers."
+ ),
+ required=True,
)
password = graphene.String(description="Password", required=True)
diff --git a/saleor/graphql/account/mutations/staff.py b/saleor/graphql/account/mutations/staff.py
index 6e0b5e0fd8..ac041c21eb 100644
--- a/saleor/graphql/account/mutations/staff.py
+++ b/saleor/graphql/account/mutations/staff.py
@@ -459,7 +459,9 @@ class PasswordReset(BaseMutation):
email = graphene.String(description="Email", required=True)
class Meta:
- description = "Sends password reset email"
+ description = (
+ "Sends an email with the account password change link to customer."
+ )
permissions = ("account.manage_users",)
@classmethod