diff options
author | Unknown <joe2010xtmf@163.com> | 2014-05-12 11:02:36 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-05-12 11:02:36 -0400 |
commit | f1130ce5e9fa63df5e472a9c5fbd3e875f1ba9f5 (patch) | |
tree | 5693fb6698f7cbf24e5f90504b8156ed4d1ca3f0 /routers | |
parent | 1769bb2f26aa26ae7476cef8eb97272f44aa28b4 (diff) | |
download | gitea-f1130ce5e9fa63df5e472a9c5fbd3e875f1ba9f5.tar.gz gitea-f1130ce5e9fa63df5e472a9c5fbd3e875f1ba9f5.zip |
Fix edit auth page bug
Diffstat (limited to 'routers')
-rw-r--r-- | routers/admin/auths.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/routers/admin/auths.go b/routers/admin/auths.go index 1822fd69ae..0bc2566a1c 100644 --- a/routers/admin/auths.go +++ b/routers/admin/auths.go @@ -55,8 +55,8 @@ func NewAuthSourcePost(ctx *middleware.Context, form auth.AuthenticationForm) { case models.LT_SMTP: u = &models.SMTPConfig{ Auth: form.SmtpAuth, - Host: form.Host, - Port: form.Port, + Host: form.SmtpHost, + Port: form.SmtpPort, TLS: form.Tls, } default: @@ -132,8 +132,8 @@ func EditAuthSourcePost(ctx *middleware.Context, form auth.AuthenticationForm) { case models.LT_SMTP: config = &models.SMTPConfig{ Auth: form.SmtpAuth, - Host: form.Host, - Port: form.Port, + Host: form.SmtpHost, + Port: form.SmtpPort, TLS: form.Tls, } default: |