mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 02:35:17 +01:00
Merge pull request #6386 from heww/session
change session cookie name to sid
This commit is contained in:
commit
a81346a4ba
@ -72,6 +72,7 @@ func updateInitPassword(userID int, password string) error {
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
beego.BConfig.WebConfig.Session.SessionOn = true
|
beego.BConfig.WebConfig.Session.SessionOn = true
|
||||||
|
beego.BConfig.WebConfig.Session.SessionName = "sid"
|
||||||
// TODO
|
// TODO
|
||||||
redisURL := os.Getenv("_REDIS_URL")
|
redisURL := os.Getenv("_REDIS_URL")
|
||||||
if len(redisURL) > 0 {
|
if len(redisURL) > 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user