diff options
Diffstat (limited to 'internal/context')
-rw-r--r-- | internal/context/auth.go | 2 | ||||
-rw-r--r-- | internal/context/context.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/context/auth.go b/internal/context/auth.go index 83c219e1..6d1b9262 100644 --- a/internal/context/auth.go +++ b/internal/context/auth.go @@ -71,7 +71,7 @@ func Toggle(options *ToggleOptions) macaron.Handler { c.SetCookie("redirect_to", url.QueryEscape(conf.Server.Subpath+c.Req.RequestURI), 0, conf.Server.Subpath) c.Redirect(conf.Server.Subpath + "/user/login") return - } else if !c.User.IsActive && conf.Service.RegisterEmailConfirm { + } else if !c.User.IsActive && conf.Auth.RequireEmailConfirmation { c.Data["Title"] = c.Tr("auth.active_your_account") c.HTML(200, "user/auth/activate") return diff --git a/internal/context/context.go b/internal/context/context.go index 65614362..3504ad71 100644 --- a/internal/context/context.go +++ b/internal/context/context.go @@ -323,7 +323,7 @@ func Contexter() macaron.Handler { log.Trace("Session ID: %s", sess.ID()) log.Trace("CSRF Token: %v", c.Data["CSRFToken"]) - c.Data["ShowRegistrationButton"] = conf.Service.ShowRegistrationButton + c.Data["ShowRegistrationButton"] = !conf.Auth.DisableRegistration c.Data["ShowFooterBranding"] = conf.ShowFooterBranding c.renderNoticeBanner() |