MCPcopy Index your code
hub / github.com/gogs/gogs / IsTwoFactorRecoveryCodeNotFound

Function IsTwoFactorRecoveryCodeNotFound

internal/database/two_factor.go:101–104  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

99}
100
101func IsTwoFactorRecoveryCodeNotFound(err error) bool {
102 _, ok := err.(ErrTwoFactorRecoveryCodeNotFound)
103 return ok
104}
105
106func (err ErrTwoFactorRecoveryCodeNotFound) Error() string {
107 return fmt.Sprintf("two-factor recovery code does not found [code: %s]", err.Code)

Callers 2

Calls

no outgoing calls

Tested by 1