conf: overhaul auth and user settings (#5942)

* conf: overhaul auth and user settings

* ci: update travis Go versions
This commit is contained in:
ᴜɴᴋɴᴡᴏɴ
2020-02-27 18:06:38 +08:00
committed by GitHub
parent cf3d55fa10
commit 7950f2d17d
27 changed files with 242 additions and 200 deletions

View File

@@ -22,7 +22,7 @@ const (
func Home(c *context.Context) {
if c.IsLogged {
if !c.User.IsActive && conf.Service.RegisterEmailConfirm {
if !c.User.IsActive && conf.Auth.RequireEmailConfirmation {
c.Data["Title"] = c.Tr("auth.active_your_account")
c.Success(user2.ACTIVATE)
} else {