Try to abstract the context entity.
This commit is contained in:
@ -67,7 +67,6 @@ func (this *UserController) Login(writer http.ResponseWriter, request *http.Requ
|
||||
expiration = expiration.AddDate(0, 0, 7)
|
||||
|
||||
//持久化用户的session.
|
||||
|
||||
session := &Session{
|
||||
UserUuid: user.Uuid,
|
||||
Ip: GetIpAddress(request),
|
||||
|
Reference in New Issue
Block a user