redirect to login page after successfully activating account

This commit is contained in:
Lanre Adelowo 2018-07-15 15:26:30 +01:00
parent 55d9ddf24a
commit 0bef325fb4

View File

@ -1034,7 +1034,7 @@ func Activate(ctx *context.Context) {
ctx.Session.Set("uid", user.ID) ctx.Session.Set("uid", user.ID)
ctx.Session.Set("uname", user.Name) ctx.Session.Set("uname", user.Name)
ctx.Redirect(setting.AppSubURL + "/") ctx.Redirect(setting.AppSubURL + "/user/login")
return return
} }