django.conf.settings.ACCOUNT_EMAIL_VERIFICATION_PERIOD

Here are the examples of the python api django.conf.settings.ACCOUNT_EMAIL_VERIFICATION_PERIOD taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

3 Source : models.py
with Apache License 2.0
from genomicsengland

    def verify_crypto_id(self, payload):
        """Check if payload contains the same PK as this object.

        :param payload: HMAC signed string
        :return: True if payload is valid (with respect to max age), False otherwise
        """
        try:
            return (
                self.pk
                and signing.loads(
                    payload, max_age=settings.ACCOUNT_EMAIL_VERIFICATION_PERIOD
                ).get("id", None)
                == self.pk
            )
        except (signing.SignatureExpired, signing.BadSignature):
            return False

    def get_email_verification_url(self):