Move OTP secret length to configuration (#32125)

This commit is contained in:
David Roetzel 2024-10-01 11:38:42 +02:00 committed by Claire
parent efa74a6c44
commit ce2481a81b
5 changed files with 8 additions and 7 deletions

View file

@ -6,7 +6,7 @@ require 'webauthn/fake_client'
RSpec.describe 'Security Key Options' do
describe 'GET /auth/sessions/security_key_options' do
let!(:user) do
Fabricate(:user, email: 'x@y.com', password: 'abcdefgh', otp_required_for_login: true, otp_secret: User.generate_otp_secret(32))
Fabricate(:user, email: 'x@y.com', password: 'abcdefgh', otp_required_for_login: true, otp_secret: User.generate_otp_secret)
end
context 'with WebAuthn and OTP enabled as second factor' do