initial commit

This commit is contained in:
Maxim Kurnikov
2018-07-29 18:12:23 +03:00
commit a9f215bf64
311 changed files with 13433 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
from datetime import date
from django.contrib.auth.models import User
from typing import Optional
class PasswordResetTokenGenerator:
def _make_hash_value(self, user: User, timestamp: int) -> str: ...
def _make_token_with_timestamp(self, user: User, timestamp: int) -> str: ...
def _num_days(self, dt: date) -> int: ...
def _today(self) -> date: ...
def check_token(self, user: User, token: Optional[str]) -> bool: ...
def make_token(self, user: User) -> str: ...