parent
e9f88b40a5
commit
af8a26ce71
@ -0,0 +1,5 @@ |
||||
{% autoescape off %} |
||||
Hi {{ user.username }}, |
||||
Please click on the link to confirm your registration, |
||||
http://{{ domain }}{% url 'activate' uidb64=uid token=token %} |
||||
{% endautoescape %} |
||||
@ -0,0 +1,10 @@ |
||||
from django.contrib.auth.tokens import PasswordResetTokenGenerator |
||||
# from django.utils import six |
||||
|
||||
class TokenGenerator(PasswordResetTokenGenerator): |
||||
def _make_hash_value(self, user, timestamp): |
||||
return ( |
||||
str(user.pk) + str(timestamp) + str(user.is_active) |
||||
) |
||||
|
||||
account_activation_token = TokenGenerator() |
||||
Loading…
Reference in new issue