Implementing signed links for email message

This commit is contained in:
2024-08-21 11:34:25 +02:00
parent 2642f706bf
commit 7a7a823715
4 changed files with 54 additions and 0 deletions

View File

@ -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()