MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / CheckCode

Method CheckCode

internal/repository/email.go:48–51  ·  view source on GitHub ↗
(ctx context.Context, email, vCode string)

Source from the content-addressed store, hash-verified

46}
47
48func (e emailRepository) CheckCode(ctx context.Context, email, vCode string) (bool, error) {
49 storedCode, err := e.cache.GetVCode(ctx, email)
50 return storedCode == vCode, err
51}

Callers

nothing calls this directly

Calls 1

GetVCodeMethod · 0.65

Tested by

no test coverage detected