(c *gin.Context)
| 367 | } |
| 368 | |
| 369 | func userAuthLogout(c *gin.Context) { |
| 370 | err := model.DeleteSession(model.GetDB(c), getSession(c)) |
| 371 | if err != nil { |
| 372 | _ = c.Error(err) |
| 373 | abortWithError(c, http.StatusInternalServerError, ErrLogoutFailed) |
| 374 | return |
| 375 | } |
| 376 | |
| 377 | responseWithData(c, http.StatusOK, nil) |
| 378 | } |
| 379 | |
| 380 | func getCurrentProjectDB(c *gin.Context) (db *gorp.DbMap, err error) { |
| 381 | project := getCurrentProject(c) |
nothing calls this directly
no test coverage detected