mirror of
https://github.com/1f349/lavender.git
synced 2024-11-09 22:32:48 +00:00
No idea how this happened
This commit is contained in:
parent
374a708899
commit
ca80b26f92
@ -64,7 +64,7 @@ func (h *HttpServer) OptionalAuthentication(next UserHandler) httprouter.Handle
|
||||
}
|
||||
|
||||
func (h *HttpServer) internalAuthenticationHandler(req *http.Request) (UserAuth, error) {
|
||||
if loginCookie, err := req.Cookie("tulip-login-data"); err == nil {
|
||||
if loginCookie, err := req.Cookie("lavender-login-data"); err == nil {
|
||||
_, b, err := mjwt.ExtractClaims[auth.AccessTokenClaims](h.signingKey, loginCookie.Value)
|
||||
if err != nil {
|
||||
return UserAuth{}, err
|
||||
|
Loading…
Reference in New Issue
Block a user