()
| 250 | } |
| 251 | |
| 252 | func (h *handler) getUserSession() error { |
| 253 | |
| 254 | h.assertAdminOnly() |
| 255 | session, _, err := h.db.Authenticator(h.ctx()).GetSession(h.PathVar("sessionid")) |
| 256 | if err != nil { |
| 257 | return err |
| 258 | } |
| 259 | return h.respondWithSessionInfoForSession(session) |
| 260 | } |
| 261 | |
| 262 | // ADMIN API: Deletes a specified session. If username is present on the request, validates |
| 263 | // that the session being deleted is associated with the user. |
nothing calls this directly
no test coverage detected