add limited db support in regards to the remember me button
This commit is contained in:
parent
feab2abe15
commit
b32b40db49
5 changed files with 119 additions and 30 deletions
13
config.py
Normal file
13
config.py
Normal 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())
|
||||
Loading…
Reference in a new issue