//todo 完善后台接口的安全性,无token不让请求数据,基于token + session的认证机制
parent
2333eb94c0
commit
30c60689fd
|
@ -281,6 +281,7 @@ func (this *UserController) Login(c *gin.Context) {
|
||||||
}
|
}
|
||||||
//存储session
|
//存储session
|
||||||
session := sessions.Get(c)
|
session := sessions.Get(c)
|
||||||
|
log.Println("set session", string(sessionInfo))
|
||||||
session.Set("", string(sessionInfo))
|
session.Set("", string(sessionInfo))
|
||||||
//session.
|
//session.
|
||||||
var Options *sessions.Options
|
var Options *sessions.Options
|
||||||
|
|
Loading…
Reference in New Issue