MCPcopy Create free account
hub / github.com/PatchMon/PatchMon / DisableTfa

Method DisableTfa

server-source-code/internal/store/users.go:318–321  ·  view source on GitHub ↗

DisableTfa turns off TFA and clears secret and backup codes.

(ctx context.Context, userID string)

Source from the content-addressed store, hash-verified

316
317// DisableTfa turns off TFA and clears secret and backup codes.
318func (s *UsersStore) DisableTfa(ctx context.Context, userID string) error {
319 d := s.db.DB(ctx)
320 return d.Queries.DisableTfa(ctx, userID)
321}
322
323// GetByDiscordID returns a user by Discord ID.
324func (s *UsersStore) GetByDiscordID(ctx context.Context, discordID string) (*models.User, error) {

Callers

nothing calls this directly

Calls 2

DBMethod · 0.65
DisableTfaMethod · 0.65

Tested by

no test coverage detected