mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-03 08:50:13 +02:00
session handler with cookies.
This commit is contained in:
parent
546cd608c3
commit
6d59b3feff
5 changed files with 113 additions and 17 deletions
|
@ -155,7 +155,7 @@ func (ws *WebSocketManagerCtx) Upgrade(w http.ResponseWriter, r *http.Request, c
|
|||
return err
|
||||
}
|
||||
|
||||
session, err := ws.sessions.Authenticate(r)
|
||||
session, err := ws.sessions.AuthenticateRequest(r)
|
||||
if err != nil {
|
||||
ws.logger.Warn().Err(err).Msg("authentication failed")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue