added mail functionality
This commit is contained in:
@@ -18,9 +18,19 @@ type AuthenticationConfig struct {
|
||||
CSRFSecret string
|
||||
}
|
||||
|
||||
type SMTPConfig struct {
|
||||
Host string `json:"Host"`
|
||||
User string `json:"User"`
|
||||
Password string `json:"Password"`
|
||||
Mailtype string `json:"Mailtype"`
|
||||
AdminEmail string `json:"AdminEmail"`
|
||||
Port int `json:"Port"`
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
DB DatabaseConfig `json:"db"`
|
||||
Auth AuthenticationConfig
|
||||
SMTP SMTPConfig `json:"smtp"`
|
||||
}
|
||||
|
||||
var (
|
||||
|
||||
Reference in New Issue
Block a user