(c *gin.Context)
| 168 | } |
| 169 | |
| 170 | func (controller *UserController) logoutHandler(c *gin.Context) { |
| 171 | tlog.App.Debug().Msg("Logout request received") |
| 172 | |
| 173 | controller.auth.DeleteSessionCookie(c) |
| 174 | |
| 175 | context, err := utils.GetContext(c) |
| 176 | if err == nil && context.IsLoggedIn { |
| 177 | tlog.AuditLogout(c, context.Username, context.Provider) |
| 178 | } |
| 179 | |
| 180 | c.JSON(200, gin.H{ |
| 181 | "status": 200, |
| 182 | "message": "Logout successful", |
| 183 | }) |
| 184 | } |
| 185 | |
| 186 | func (controller *UserController) totpHandler(c *gin.Context) { |
| 187 | var req TotpRequest |
nothing calls this directly
no test coverage detected