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

Function newTwoFactorsStore

internal/database/two_factors.go:38–40  ·  view source on GitHub ↗
(db *gorm.DB)

Source from the content-addressed store, hash-verified

36}
37
38func newTwoFactorsStore(db *gorm.DB) *TwoFactorsStore {
39 return &TwoFactorsStore{db: db}
40}
41
42// Create creates a new 2FA token and recovery codes for given user. The "key"
43// is used to encrypt and later decrypt given "secret", which should be

Callers 1

TwoFactorsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected