MCPcopy Create free account
hub / github.com/AlistGo/auth / wopanVerifyCode

Function wopanVerifyCode

app/wopan.go:26–43  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

24}
25
26func wopanVerifyCode(c *gin.Context) {
27 req := struct {
28 Phone string `json:"phone"`
29 Password string `json:"password"`
30 VerifyCode string `json:"verify_code"`
31 }{}
32 if err := c.ShouldBind(&req); err != nil {
33 Error(c, err)
34 return
35 }
36 w := wopan.Default()
37 res, err := w.PcLoginVerifyCode(req.Phone, req.Password, req.VerifyCode)
38 if err != nil {
39 Error(c, err)
40 return
41 }
42 c.JSON(200, res)
43}

Callers

nothing calls this directly

Calls 1

ErrorFunction · 0.85

Tested by

no test coverage detected