MCPcopy Create free account
hub / github.com/gourouting/singo / UserLogin

Function UserLogin

api/user.go:23–31  ·  view source on GitHub ↗

UserLogin handles user login.

(c *gin.Context)

Source from the content-addressed store, hash-verified

21
22// UserLogin handles user login.
23func UserLogin(c *gin.Context) {
24 var service service.UserLoginService
25 if err := c.ShouldBind(&service); err == nil {
26 res := service.Login(c)
27 c.JSON(200, res)
28 } else {
29 c.JSON(200, ErrorResponse(err))
30 }
31}
32
33// UserMe returns the user profile.
34func UserMe(c *gin.Context) {

Callers

nothing calls this directly

Calls 2

LoginMethod · 0.95
ErrorResponseFunction · 0.85

Tested by

no test coverage detected