mirror of
https://github.com/gogs/gogs.git
synced 2025-12-22 08:09:59 +01:00
conf: overhaul security settings
This commit is contained in:
@@ -32,7 +32,7 @@ func Home(c *context.Context) {
|
||||
}
|
||||
|
||||
// Check auto-login.
|
||||
uname := c.GetCookie(conf.CookieUserName)
|
||||
uname := c.GetCookie(conf.Security.CookieUsername)
|
||||
if len(uname) != 0 {
|
||||
c.Redirect(conf.Server.Subpath + "/user/login")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user