Fakultas Ilmu Komputer UI

Commit c6fc58d5 authored by Usman Sidiq's avatar Usman Sidiq
Browse files

[RED] Adding module file that included in API implementations

parent 39cd97b3
Pipeline #45257 failed with stages
in 3 minutes and 17 seconds
from django.contrib.auth.tokens import PasswordResetTokenGenerator
from django.utils import six
class TokenGenerator(PasswordResetTokenGenerator):
def _make_hash_value(self, user, timestamp):
return (
six.text_type(user.pk) + six.text_type(timestamp) +
six.text_type(user.is_active)
)
account_activation_token = TokenGenerator()
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment