forked from kevadesu/forgejo
Mirror fix on UI
This commit is contained in:
parent
2a0066420a
commit
e938863ae6
4 changed files with 7 additions and 13 deletions
|
@ -156,7 +156,7 @@ func Install(ctx *middleware.Context, form auth.InstallForm) {
|
|||
base.Cfg.SetValue("server", "DOMAIN", form.Domain)
|
||||
base.Cfg.SetValue("server", "ROOT_URL", form.AppUrl)
|
||||
|
||||
if len(form.Host) > 0 {
|
||||
if len(strings.TrimSpace(form.SmtpHost)) > 0 {
|
||||
base.Cfg.SetValue("mailer", "ENABLED", "true")
|
||||
base.Cfg.SetValue("mailer", "HOST", form.SmtpHost)
|
||||
base.Cfg.SetValue("mailer", "USER", form.SmtpEmail)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue