DisableTfa turns off TFA and clears secret and backup codes.
(ctx context.Context, userID string)
| 316 | |
| 317 | // DisableTfa turns off TFA and clears secret and backup codes. |
| 318 | func (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. |
| 324 | func (s *UsersStore) GetByDiscordID(ctx context.Context, discordID string) (*models.User, error) { |
nothing calls this directly
no test coverage detected