Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disallow TOTP reuse #4911

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Travel in between totp requests
segiddins authored and simi committed Aug 28, 2024
commit 0562dcb91c383b952ab3f77db869471df5196442
2 changes: 2 additions & 0 deletions test/functional/api/v1/deletions_controller_test.rb
Original file line number Diff line number Diff line change
@@ -328,6 +328,8 @@ class Api::V1::DeletionsControllerTest < ActionController::TestCase

should "not include mfa warnings" do
@gems.each_value do |gem|
travel_to 30.seconds.from_now

@request.env["HTTP_OTP"] = ROTP::TOTP.new(@user.totp_seed).now
delete :create, params: { gem_name: gem[:name], version: gem[:version] }