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

i18n #202

Open
alec-c4 opened this issue Sep 17, 2021 · 6 comments
Open

i18n #202

alec-c4 opened this issue Sep 17, 2021 · 6 comments
Labels

Comments

@alec-c4
Copy link

alec-c4 commented Sep 17, 2021

Hey, there is a little bit of strange behavior. When I sign in using devise-two-factor I see devise.failure.already_authenticated message. What's wrong with it?

@hoppergee
Copy link

https://github.com/heartcombo/devise/blob/main/app/controllers/devise_controller.rb#L102-L118
There's only one method is using this message: require_no_authentication. Check your code whether this method is being misused in the controller.

@zachbodek
Copy link

I get the same issue. Did you find a resolution for it?

@hoppergee
Copy link

zachbodek

Can you offer a sample code to help to reproduce this issue?

@zachbodek
Copy link

I followed along with this guide that allows OTP to be its own page.

@bsedat bsedat added the question label Jul 8, 2022
@dcorking
Copy link

I have been able to reproduce this issue with the sample app mentioned by @zachbodek : https://github.com/jamesridgway/devise-otp-second-step

Screenshot 2023-07-12 at 15 41 12

(The sample session controller hook is here: https://github.com/jamesridgway/devise-otp-second-step/blob/master/app/controllers/concerns/authenticate_with_otp_two_factor.rb )

@dcorking
Copy link

There is a solution that fixes this issue in the sample app at jamesridgway/devise-otp-second-step#24

It doesn't seem to be specific to devise-two-factor, and rather is caused by the overall approach the sample app uses to a two-step authentication in devise.

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

No branches or pull requests

5 participants