(c *gin.Context)
| 100 | } |
| 101 | |
| 102 | func adminOAuthLogout(c *gin.Context) { |
| 103 | err := model.DeleteSession(model.GetDB(c), getSession(c)) |
| 104 | if err != nil { |
| 105 | _ = c.Error(err) |
| 106 | abortWithError(c, http.StatusInternalServerError, ErrLogoutFailed) |
| 107 | return |
| 108 | } |
| 109 | |
| 110 | responseWithData(c, http.StatusOK, nil) |
| 111 | } |
| 112 | |
| 113 | func adminCheck(c *gin.Context) { |
| 114 | s := getSession(c) |
nothing calls this directly
no test coverage detected