mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-02 19:03:54 +02:00
OnHostChanged event and add tokens to session.
This commit is contained in:
parent
453a6905f7
commit
3fcca6ab52
6 changed files with 43 additions and 12 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue