(c *gin.Context)
| 356 | } |
| 357 | |
| 358 | func 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 | } |
no test coverage detected