Skip to content

Commit

Permalink
fix: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
talboren committed Oct 30, 2024
1 parent 494c902 commit 16941ef
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions keep/providers/smtp_provider/smtp_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,6 @@

@pydantic.dataclasses.dataclass
class SmtpProviderAuthConfig:
smtp_username: str = dataclasses.field(
metadata={
"required": False,
"description": "SMTP username",
"config_main_group": "authentication",
},
default="",
)

smtp_password: str = dataclasses.field(
metadata={
"required": False,
"sensitive": True,
"description": "SMTP password",
"config_main_group": "authentication",
},
default="",
)

smtp_server: str = dataclasses.field(
metadata={
"required": True,
Expand All @@ -49,7 +30,8 @@ class SmtpProviderAuthConfig:
"required": True,
"description": "SMTP port",
"config_main_group": "authentication",
}
},
default=587,
)

encryption: typing.Literal["SSL", "TLS"] = dataclasses.field(
Expand All @@ -63,6 +45,25 @@ class SmtpProviderAuthConfig:
},
)

smtp_username: str = dataclasses.field(
metadata={
"required": False,
"description": "SMTP username",
"config_main_group": "authentication",
},
default="",
)

smtp_password: str = dataclasses.field(
metadata={
"required": False,
"sensitive": True,
"description": "SMTP password",
"config_main_group": "authentication",
},
default="",
)


class SmtpProvider(BaseProvider):
PROVIDER_SCOPES = [
Expand Down

0 comments on commit 16941ef

Please sign in to comment.