MCPcopy Create free account
hub / github.com/actiontech/dtle / GetUserName

Function GetUserName

api/handler/v2/user.go:350–354  ·  view source on GitHub ↗
(c echo.Context)

Source from the content-addressed store, hash-verified

348}
349
350func GetUserName(c echo.Context) (string, string) {
351 user := c.Get("user").(*jwt.Token)
352 claims := user.Claims.(jwt.MapClaims)
353 return claims["group"].(string), claims["name"].(string)
354}
355
356// @Id ListActionV2
357// @Description list user action.

Callers 6

AuthFilterFunction · 0.92
CreateRoleV2Function · 0.85
UpdateRoleV2Function · 0.85
DeleteRoleV2Function · 0.85
DeleteUserV2Function · 0.85
getCurrentUserFunction · 0.85

Calls 1

GetMethod · 0.80

Tested by

no test coverage detected