mirror of https://github.com/gophish/gophish
Removed unneeded SMTP config in favor of the Sending Profiles. Fixes #434
parent
78fa561404
commit
3a37849324
|
@ -11,11 +11,6 @@
|
||||||
"cert_path" : "example.crt",
|
"cert_path" : "example.crt",
|
||||||
"key_path": "example.key"
|
"key_path": "example.key"
|
||||||
},
|
},
|
||||||
"smtp" : {
|
|
||||||
"host" : "smtp.example.com:25",
|
|
||||||
"user" : "username",
|
|
||||||
"pass" : "password"
|
|
||||||
},
|
|
||||||
"db_path" : "gophish.db",
|
"db_path" : "gophish.db",
|
||||||
"migrations_path" : "db/migrations/"
|
"migrations_path" : "db/migrations/"
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,13 +6,6 @@ import (
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
// SMTPServer represents the SMTP configuration details
|
|
||||||
type SMTPServer struct {
|
|
||||||
Host string `json:"host"`
|
|
||||||
User string `json:"user"`
|
|
||||||
Password string `json:"password"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdminServer represents the Admin server configuration details
|
// AdminServer represents the Admin server configuration details
|
||||||
type AdminServer struct {
|
type AdminServer struct {
|
||||||
ListenURL string `json:"listen_url"`
|
ListenURL string `json:"listen_url"`
|
||||||
|
@ -33,7 +26,6 @@ type PhishServer struct {
|
||||||
type Config struct {
|
type Config struct {
|
||||||
AdminConf AdminServer `json:"admin_server"`
|
AdminConf AdminServer `json:"admin_server"`
|
||||||
PhishConf PhishServer `json:"phish_server"`
|
PhishConf PhishServer `json:"phish_server"`
|
||||||
SMTPConf SMTPServer `json:"smtp"`
|
|
||||||
DBPath string `json:"db_path"`
|
DBPath string `json:"db_path"`
|
||||||
MigrationsPath string `json:"migrations_path"`
|
MigrationsPath string `json:"migrations_path"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue