MCPcopy Create free account
hub / github.com/SignTools/SignTools / set2FA

Function set2FA

main.go:447–454  ·  view source on GitHub ↗
(c echo.Context, app storage.App)

Source from the content-addressed store, hash-verified

445}
446
447func set2FA(c echo.Context, app storage.App) error {
448 job, ok := storage.Jobs.GetByAppId(app.GetId())
449 if !ok {
450 return errors.New("no job found for app " + app.GetId())
451 }
452 job.TwoFactorCode.Store(c.FormValue("formToken"))
453 return c.Redirect(302, "/")
454}
455
456func deleteApp(c echo.Context, app storage.App) error {
457 if err := storage.Apps.Delete(app.GetId()); err != nil {

Callers

nothing calls this directly

Calls 3

GetByAppIdMethod · 0.80
NewMethod · 0.80
GetIdMethod · 0.65

Tested by

no test coverage detected