Basic email sending
This commit is contained in:
@ -57,6 +57,8 @@ type SMTPConfig struct {
|
||||
User string `yaml:"user"`
|
||||
Password string `yaml:"password"`
|
||||
InsecureSkipVerify bool `yaml:"insecureSkipVerify"`
|
||||
SenderAddress string `yaml:"senderAddress"`
|
||||
SenderName string `yaml:"senderName"`
|
||||
}
|
||||
|
||||
type HydraConfig struct {
|
||||
@ -83,9 +85,16 @@ func NewDefault() *Config {
|
||||
IssuerURL: "http://localhost:4444/",
|
||||
RedirectURL: "http://localhost:3000/test/oauth2/callback",
|
||||
},
|
||||
SMTP: SMTPConfig{},
|
||||
SMTP: SMTPConfig{
|
||||
Host: "localhost",
|
||||
Port: 2525,
|
||||
User: "hydra-passwordless",
|
||||
Password: "hydra-passwordless",
|
||||
SenderAddress: "noreply@localhost",
|
||||
SenderName: "noreply",
|
||||
},
|
||||
Hydra: HydraConfig{
|
||||
BaseURL: "http://localhost:4444/",
|
||||
BaseURL: "http://localhost:4445/",
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user