Skip to content

Commit a32847a

Browse files
committed
fix(config): set default values for SMTP configuration
- Provide default values for SMTP settings - Initialize required SMTP parameters for safer startup
1 parent 5d40e48 commit a32847a

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

backend/core/config.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ class Settings(BaseSettings):
6464

6565
# SMTP setting
6666
SMTP_ENABLE: bool = False
67-
SMTP_HOST: str
68-
SMTP_PORT: int
69-
SMTP_USERNAME: str
70-
SMTP_PASSWORD: str
71-
SMTP_FROM_EMAIL: str
72-
SMTP_FROM_NAME: str
73-
SMTP_ENCRYPTION: str
67+
SMTP_HOST: str = "smtp.gmail.com"
68+
SMTP_PORT: int = 587
69+
SMTP_USERNAME: str = ""
70+
SMTP_PASSWORD: str = ""
71+
SMTP_FROM_EMAIL: str = ""
72+
SMTP_FROM_NAME: str = "Docker Fullstack Template"
73+
SMTP_ENCRYPTION: str = "tls"
7474

7575
# Default admin user settings
7676
DEFAULT_ADMIN_EMAIL: str = "admin@example.com"

0 commit comments

Comments
 (0)