add limited db support in regards to the remember me button

This commit is contained in:
kittentm 2026-02-06 04:00:43 +01:00
commit b32b40db49
5 changed files with 119 additions and 30 deletions

13
config.py Normal file
View file

@ -0,0 +1,13 @@
from pydantic_settings import BaseSettings, SettingsConfigDict
from cryptography.fernet import Fernet
class Settings(BaseSettings):
port: int = 5000
db_url: str
fernet_key: str
cookie_httponly: bool = True
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
settings = Settings()
cipher = Fernet(settings.fernet_key.encode())