You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
from django.contrib.auth.tokens import PasswordResetTokenGenerator
|
|
|
|
class TokenGenerator(PasswordResetTokenGenerator):
|
|
def _make_hash_value(self, user, timestamp):
|
|
return (
|
|
str(user.pk) + str(timestamp) + str(user.is_active)
|
|
)
|
|
|
|
account_activation_token = TokenGenerator()
|
|
|