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

Verification code is not matched in Staging environment #40

Closed
PirunSeng opened this issue Feb 26, 2018 · 4 comments
Closed

Verification code is not matched in Staging environment #40

PirunSeng opened this issue Feb 26, 2018 · 4 comments

Comments

@PirunSeng
Copy link

I've followed #46 Two Factor Authentication episode of DriftingRuby and I can get the TFA works well in my development environment. Unluckily, there is a strange behavior when I deploy my feature to Staging environment.

Here is my QRCode generator:
qr = RQRCode::QRCode.new(resource.provisioning_uri, level: :h)

The rest of the implementation are the same as described in the epicode.

A strange thing is that the QR code looks differently between development and staging environment. The problem is that I can scan the QR code in staging environment, but when I use that code to verify, it is always not matched.

Can somebody figure whether this is a bug of Active Model OTP or RQRCode gem?

I'm using:

gem 'rails', '4.2.2'
gem 'devise', '~> 3.5', '>= 3.5.2'
gem 'active_model_otp', '~> 1.2'
gem 'rqrcode', '~> 0.10.1'
@PirunSeng PirunSeng changed the title Verification code is never matched in Staging environment Verification code is not matched in Staging environment Feb 26, 2018
@raychiranjib1
Copy link

@PirunSeng Is there any update? How did you fix it?

@dark-prince
Copy link

This issue was posted more than 2 years back, but still it's opened. Same issue we are also facing. It will be beneficial if someone looks into it.

@pedrofurtado
Copy link
Collaborator

Hey guys!

Do you have a minimal reproducible rails app repo, that contains this error inside it? 🤝

It will be more assertive to help you with this situation

@pedrofurtado
Copy link
Collaborator

In the meantime, we will close it. Any news about it, a reproducible repo or something like that, we reopen it and make some progress together 🤝

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

4 participants