(f form.Authentication)
| 104 | } |
| 105 | |
| 106 | func parseSMTPConfig(f form.Authentication) *smtp.Config { |
| 107 | return &smtp.Config{ |
| 108 | Auth: f.SMTPAuth, |
| 109 | Host: f.SMTPHost, |
| 110 | Port: f.SMTPPort, |
| 111 | AllowedDomains: f.AllowedDomains, |
| 112 | TLS: f.TLS, |
| 113 | SkipVerify: f.SkipVerify, |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | func NewAuthSourcePost(c *context.Context, f form.Authentication) { |
| 118 | c.Title("admin.auths.new") |
no outgoing calls
no test coverage detected