implement autologin on login page

This commit is contained in:
kittentm 2026-02-06 23:06:27 +01:00
commit b9beb11268
5 changed files with 99 additions and 25 deletions

View file

@ -5,9 +5,10 @@ class Settings(BaseSettings):
port: int = 5000
db_url: str
fernet_key: str
cookie_httponly: bool = True
cookie_httponly: bool = False
frontend_url: str
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
cookie_secure: bool = False
settings = Settings()
cipher = Fernet(settings.fernet_key.encode())