MCPcopy Create free account
hub / github.com/gogs/gogs / parseSMTPConfig

Function parseSMTPConfig

internal/route/admin/auths.go:106–115  ·  view source on GitHub ↗
(f form.Authentication)

Source from the content-addressed store, hash-verified

104}
105
106func 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
117func NewAuthSourcePost(c *context.Context, f form.Authentication) {
118 c.Title("admin.auths.new")

Callers 2

NewAuthSourcePostFunction · 0.85
EditAuthSourcePostFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected