MCPcopy Create free account
hub / github.com/gogs/gogs / LoginTwoFactor

Function LoginTwoFactor

internal/route/user/auth.go:197–205  ·  view source on GitHub ↗
(c *context.Context)

Source from the content-addressed store, hash-verified

195}
196
197func LoginTwoFactor(c *context.Context) {
198 _, ok := c.Session.Get("twoFactorUserID").(int64)
199 if !ok {
200 c.NotFound()
201 return
202 }
203
204 c.Success(tmplUserAuthTwoFactor)
205}
206
207func LoginTwoFactorPost(c *context.Context) {
208 userID, ok := c.Session.Get("twoFactorUserID").(int64)

Callers

nothing calls this directly

Calls 3

SuccessMethod · 0.80
GetMethod · 0.65
NotFoundMethod · 0.65

Tested by

no test coverage detected