first push

This commit is contained in:
2025-05-23 14:44:12 +08:00
commit abefd1b19b
817 changed files with 580289 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
from django.contrib.auth.tokens import PasswordResetTokenGenerator
from six import text_type
class AccountActivationTokenGenerator(PasswordResetTokenGenerator):
def _make_hash_value(self, user, timestamp):
return(
text_type(user.pk) + text_type(timestamp) + text_type(user.is_active)
)
account_activation_token = AccountActivationTokenGenerator()