implement autologin on login page
This commit is contained in:
parent
b32b40db49
commit
b9beb11268
5 changed files with 99 additions and 25 deletions
|
|
@ -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())
|
||||
Loading…
Reference in a new issue