OTP autologin in request specs #493
Closed
AlfonsoUceda
started this conversation in
General
Replies: 1 comment 3 replies
|
If you've setup forcing users to setup OTP after login, but you want your specs to work without OTP after login, you are basically ensuring you testing a flow you are not allowing in production. I would not recommend that approach, but if you want to do it anyway, why not just only require OTP after login in the development and production environments, and not in the test environment? My recommendation would be to use OTP in the specs if you are requiring it in production. If you aren't sure how to do that, look at Rodauth's specs. If I've misunderstood, please post a minimal self contained reproducible example showing the issue. |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello!
I'm using OTP feature in my accounts and I've implemented to force users to setup OTP after login the problem is that my request specs fails because after login they require otp setup.
I've been reading the code but I'm not sure how to do this to bypass OTP setup.
This is how I log in the request specs
the response for that request contains the path in location header
/otp-setup. Does rodauth have any internal request method to bypass this?Cheers,
Alfonso
All reactions