Implementing signed links for email message
This commit is contained in:
@ -31,6 +31,8 @@ type config struct {
|
||||
username string
|
||||
password string
|
||||
}
|
||||
secretkey string
|
||||
frontend string
|
||||
}
|
||||
|
||||
type application struct {
|
||||
@ -79,6 +81,8 @@ func main() {
|
||||
flag.IntVar(&cfg.smtp.port, "smtpport", 1025, "smtp host")
|
||||
flag.StringVar(&cfg.smtp.username, "smtpuser", "user", "smtp user")
|
||||
flag.StringVar(&cfg.smtp.password, "smtppwd", "password", "smtp password")
|
||||
flag.StringVar(&cfg.secretkey, "secret", "secRetKeY", "secret key")
|
||||
flag.StringVar(&cfg.frontend, "frontend", "http://localhost:4000", "frontend address")
|
||||
|
||||
flag.Parse()
|
||||
|
||||
|
Reference in New Issue
Block a user