def validate_key(self, activation_key):
    '\n        Verify that the activation key is valid and within the\n        permitted activation time window, returning the username if\n        valid or ``None`` if not.\n\n        '
    try:
        username = signing.loads(activation_key, salt=self.key_salt, max_age=(conf.get('ACCOUNT_ACTIVATION_DAYS') * 86400))
        return username
    except signing.BadSignature:
        return None
Verify that the activation key is valid and within the
permitted activation time window, returning the username if
valid or ``None`` if not.
def validate_key(self, activation_key):
    '\n        Verify that the activation key is valid and within the\n        permitted activation time window, returning the username if\n        valid or ``None`` if not.\n\n        '
    try:
        username = signing.loads(activation_key, salt=self.key_salt, max_age=(conf.get('ACCOUNT_ACTIVATION_DAYS') * 86400))
        return username
    except signing.BadSignature:
        return None