MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / deleteCurrentSession

Function deleteCurrentSession

core/app/auth/auth.go:358–367  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

356}
357
358func deleteCurrentSession(c *gin.Context) {
359 if c == nil {
360 return
361 }
362 sessionUser, err := global.SESSION.Get(c)
363 if err != nil || sessionUser.ID == "" {
364 return
365 }
366 _ = global.SESSION.DeleteByID(sessionUser.ID)
367}

Callers 1

UpdateCurrentUserInfoFunction · 0.85

Calls 2

GetMethod · 0.65
DeleteByIDMethod · 0.65

Tested by

no test coverage detected