mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Modify: using memstore to store session
This commit is contained in:
@@ -42,13 +42,13 @@ func (service *UserLoginService) Login(c *gin.Context) serializer.Response {
|
||||
}
|
||||
|
||||
//登陆成功,清空并设置session
|
||||
ClearSession(c)
|
||||
SetSession(c, map[string]interface{}{
|
||||
"user_id": expectedUser.ID,
|
||||
})
|
||||
|
||||
return serializer.Response{
|
||||
Code: 0,
|
||||
Data: &expectedUser,
|
||||
Msg: "",
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user