aboutsummaryrefslogtreecommitdiff
path: root/internal/db/two_factor.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/two_factor.go')
-rw-r--r--internal/db/two_factor.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/two_factor.go b/internal/db/two_factor.go
index ca990454..1c310535 100644
--- a/internal/db/two_factor.go
+++ b/internal/db/two_factor.go
@@ -111,7 +111,7 @@ func (err ErrTwoFactorRecoveryCodeNotFound) Error() string {
}
// UseRecoveryCode validates recovery code of given user and marks it is used if valid.
-func UseRecoveryCode(userID int64, code string) error {
+func UseRecoveryCode(_ int64, code string) error {
recoveryCode := new(TwoFactorRecoveryCode)
has, err := x.Where("code = ?", code).And("is_used = ?", false).Get(recoveryCode)
if err != nil {