aboutsummaryrefslogtreecommitdiffstats
path: root/routers/install
diff options
context:
space:
mode:
authorVladimir Smagin <21h@blindage.org>2022-05-02 15:45:23 +0700
committerGitHub <noreply@github.com>2022-05-02 16:45:23 +0800
commit0ba3ada866a20180942747a753f184250b3f140c (patch)
tree401dbd42bab2cdbebb2f283bb4cf2f4b2beffb03 /routers/install
parent71bafa0263757367317f031b3b633a8d437d735c (diff)
downloadgitea-0ba3ada866a20180942747a753f184250b3f140c.tar.gz
gitea-0ba3ada866a20180942747a753f184250b3f140c.zip
add smtp password to install page (#17564)
* add smtp password to install page * Update routers/install/install.go Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'routers/install')
-rw-r--r--routers/install/install.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/install/install.go b/routers/install/install.go
index 9d28bc1571..459f534b89 100644
--- a/routers/install/install.go
+++ b/routers/install/install.go
@@ -134,6 +134,7 @@ func Install(ctx *context.Context) {
form.SMTPHost = setting.MailService.Host
form.SMTPFrom = setting.MailService.From
form.SMTPUser = setting.MailService.User
+ form.SMTPPasswd = setting.MailService.Passwd
}
form.RegisterConfirm = setting.Service.RegisterEmailConfirm
form.MailNotify = setting.Service.EnableNotifyMail