Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
nrbnlulu committed May 29, 2022
1 parent 81bdeb2 commit 9d089cc
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/gqlauth/settings_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,14 @@ class GqlAuthSettings:
# mutation fields options
LOGIN_OPTIONAL_FIELDS: list = field(default_factory=lambda: [])
LOGIN_REQUIRE_CAPTCHA: bool = True
LOGIN_REQUIRED_FIELDS: dict | list = field(default_factory=lambda: ["username", "password"])
LOGIN_REQUIRED_FIELDS: dict | list = field(
default_factory=lambda: ["username", "password"]
)
# required fields on register, plus password1 and password2,
# can be a dict like UPDATE_MUTATION_fieldS setting
REGISTER_MUTATION_FIELDS: dict | list = field(default_factory=lambda: ["email", "username"])
REGISTER_MUTATION_FIELDS: dict | list = field(
default_factory=lambda: ["email", "username"]
)
REGISTER_MUTATION_FIELDS_OPTIONAL: list = field(default_factory=lambda: [])
REGISTER_REQUIRE_CAPTCHA: bool = True
# captcha stuff
Expand Down Expand Up @@ -80,8 +84,12 @@ class GqlAuthSettings:
EMAIL_TEMPLATE_PASSWORD_RESET: str = "email/password_reset_email.html"
EMAIL_TEMPLATE_VARIABLES: dict = field(default_factory=lambda: {})
# query stuff
USER_NODE_EXCLUDE_FIELDS: dict | list = field(default_factory=lambda: ["password", "is_superuser"])
USER_NODE_FILTER_FIELDS: dict = field(default_factory=lambda: _USER_NODE_FILTER_fieldS)
USER_NODE_EXCLUDE_FIELDS: dict | list = field(
default_factory=lambda: ["password", "is_superuser"]
)
USER_NODE_FILTER_FIELDS: dict = field(
default_factory=lambda: _USER_NODE_FILTER_fieldS
)
# others
## turn is_active to False instead
ALLOW_DELETE_ACCOUNT: bool = False
Expand Down

0 comments on commit 9d089cc

Please sign in to comment.