OnHostChanged event and add tokens to session.

This commit is contained in:
Miroslav Šedivý 2021-03-13 22:17:49 +01:00
parent 453a6905f7
commit 3fcca6ab52
6 changed files with 43 additions and 12 deletions

View file

@ -14,7 +14,7 @@ func (manager *SessionManagerCtx) Authenticate(r *http.Request) (types.Session,
return nil, fmt.Errorf("no authentication provided")
}
session, ok := manager.Get(token)
session, ok := manager.GetByToken(token)
if !ok {
return nil, fmt.Errorf("session not found")
}