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

Function IsErrTwoFactorNotFound

internal/database/two_factors.go:77–79  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

75}
76
77func IsErrTwoFactorNotFound(err error) bool {
78 return errors.As(err, &ErrTwoFactorNotFound{})
79}
80
81func (err ErrTwoFactorNotFound) Error() string {
82 return fmt.Sprintf("2FA does not found: %v", err.args)

Callers 1

SettingsSecurityFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected