Skip to content

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

Fix for necessity of requires_confirmation field on AccountRegister when errors are present

Tomasz Szymański5b287157233b
diff --git a/saleor/graphql/account/mutations/account.py b/saleor/graphql/account/mutations/account.py
index cd90792ce3..afacea9799 100644
--- a/saleor/graphql/account/mutations/account.py
+++ b/saleor/graphql/account/mutations/account.py
@@ -44,8 +44,7 @@ class AccountRegister(ModelMutation):
)
requires_confirmation = graphene.Boolean(
- required=True,
- description="Informs whether users need to confirm their email address.",
+ description="Informs whether users need to confirm their email address."
)
class Meta:
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 2a608d709f..e292773748 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -66,7 +66,7 @@ input AccountInput {
type AccountRegister {
errors: [Error!]
- requiresConfirmation: Boolean!
+ requiresConfirmation: Boolean
accountErrors: [AccountError!]
user: User
}