mirror of
https://github.com/gogs/gogs.git
synced 2025-12-21 07:39:59 +01:00
conf: overhaul auth and user settings (#5942)
* conf: overhaul auth and user settings * ci: update travis Go versions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user