File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
src/backend/langflow/services/settings Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1+ import secrets
12from pathlib import Path
23from typing import Optional
3- import secrets
4+
5+ from loguru import logger
6+ from passlib .context import CryptContext
7+ from pydantic import Field , validator
8+ from pydantic_settings import BaseSettings
9+
410from langflow .services .settings .constants import (
511 DEFAULT_SUPERUSER ,
612 DEFAULT_SUPERUSER_PASSWORD ,
713)
814from langflow .services .settings .utils import read_secret_from_file , write_secret_to_file
915
10- from pydantic import Field , validator
11- from pydantic_settings import BaseSettings
12- from passlib .context import CryptContext
13- from loguru import logger
14-
1516
1617class AuthSettings (BaseSettings ):
1718 # Login settings
1819 CONFIG_DIR : str
1920 SECRET_KEY : str = Field (
2021 default = "" ,
2122 description = "Secret key for JWT. If not provided, a random one will be generated." ,
22- env = "LANGFLOW_SECRET_KEY" ,
23- allow_mutation = False ,
23+ frozen = False ,
2424 )
2525 ALGORITHM : str = "HS256"
2626 ACCESS_TOKEN_EXPIRE_MINUTES : int = 60
You can’t perform that action at this time.
0 commit comments