bullet-train-co/bullet_train

`devise-two-factor` is broken without jQuery

jagthedrummer opened this issue · 0 comments

The process for initially setting up 2FA relies on global $

CleanShot 2024-06-20 at 14 12 57

These three files all try to use $:

https://github.com/bullet-train-co/bullet_train-core/tree/main/bullet_train/app/views/account/two_factors

I found that I can get 2FA setup working if I change those from $ to jQuery.

Then when I try to sign in, it again complains about missing $:

CleanShot 2024-06-20 at 14 34 14

So I tried to change these lines to use jQuery instead of $ but then it just complains about jQuery not being defined.