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

Tests fail when adding otp #129

Open
ac74394 opened this issue Nov 19, 2024 · 0 comments
Open

Tests fail when adding otp #129

ac74394 opened this issue Nov 19, 2024 · 0 comments

Comments

@ac74394
Copy link

ac74394 commented Nov 19, 2024

When installing the authentication_zero version that requires OTP_secret, the User fixture should include the following line:

otp_secret: <%= ROTP::Base32.random %>

because, otp_secret is constrained to not be null, and this causes an error when running tests, since the model adds it during the before_validate callback (which are not run when fixtures are created).

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant