Ashish
Ashish
I think there is no straight forward way to add the email type to the user type as I am using a custom email field. I can see there is...
from gqlauth.settings_type import GqlAuthSettings, password_field, email_field I am using `email_field` from `gqlauth` only This is my custom email field. ``` class LowercaseEmailField(models.EmailField): """ Override EmailField to convert emails to lowercase...
``` GQL_AUTH = GqlAuthSettings( LOGIN_REQUIRE_CAPTCHA=False, REGISTER_REQUIRE_CAPTCHA=False, ALLOW_LOGIN_NOT_VERIFIED=True, LOGIN_FIELDS={email_field, password_field}, REGISTER_MUTATION_FIELDS={email_field}, # CAPTCHA_EXPIRATION_DELTA=timedelta(seconds=120), # CAPTCHA_MAX_RETRIES=5, # CAPTCHA_TEXT_FACTORY=default_text_factory, # CAPTCHA_TEXT_VALIDATOR=default_captcha_text_validator, # FORCE_SHOW_CAPTCHA=False, # CAPTCHA_SAVE_IMAGE=False, UPDATE_MUTATION_FIELDS={email_field}, JWT_PAYLOAD_PK=email_field, ) ``` ``` Traceback (most recent...
Using the following. `from gqlauth.settings_type import GqlAuthSettings, password_field, email_field`