Skip to content

Commit 796adf5

Browse files
committed
Security fixes and updates
1 parent 78a3cc0 commit 796adf5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

core/user/service.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,8 @@ func (s *service) ActivateTOTP(ctx context.Context, id uuid.UUID, code string) (
294294
return false, err
295295
}
296296

297-
return s.repository.TryUpdateLastUsedTOTPCode(ctx, usr.ID, code)
297+
_, _ = s.repository.TryUpdateLastUsedTOTPCode(ctx, usr.ID, code)
298+
return true, nil
298299
}
299300

300301
func (s *service) resetPassword(ctx context.Context, username string) (string, error) {

0 commit comments

Comments
 (0)