devise-two-factor icon indicating copy to clipboard operation
devise-two-factor copied to clipboard

i18n

Open alec-c4 opened this issue 3 years ago • 6 comments

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?

alec-c4 avatar Sep 17 '21 17:09 alec-c4

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.

hoppergee avatar Dec 29 '21 18:12 hoppergee

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

zachbodek avatar Mar 09 '22 20:03 zachbodek

zachbodek

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

hoppergee avatar Mar 09 '22 22:03 hoppergee

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

zachbodek avatar Mar 14 '22 14:03 zachbodek

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 avatar Jul 12 '23 14:07 dcorking

There is a solution that fixes this issue in the sample app at https://github.com/jamesridgway/devise-otp-second-step/issues/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.

dcorking avatar Jul 13 '23 08:07 dcorking