-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
load U2F js only on pages which need it #11585
Conversation
cc @silverwind |
Why not just set |
Yup, we should continue using It seems that it was added to |
My comment in #11573 was more aimed at the removal of the I think the current loading mechanism via |
Updated. Please restart the arm64 failing test. |
ping @lafriks @silverwind |
Not sure I understand the impact of the move of this variable. Is the |
The impact is that the U2F is set to load only on the security settings page and not wherever the security data is loaded, e.g. oauth endpoints. I'm pretty sure that the |
Maybe @6543 can test this? I don't have a security token, so I can't verify. |
Works for me. |
will test soon |
ok cant test at the moment, it looks like my local test instance has no working U2F at all :/ I dont have time to dig into it at the moment - so neither a lgtm nor a block |
@6543 What do you mean by "has no working U2F at all", what's going wrong? I'd love to help you test this. |
Not aware of anyone else aside from @6543, sorry. |
Maybe @jonasfranz can test. |
I'll have some time today - Will hava a try again :) |
hmm still get |
I've been getting a similar error when the base URL in the config was HTTP and not HTTPS. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 months. Thank you for your contributions. |
make lg-tm work |
Currently the U2F js will load on every page, as long as the user is enrolled in TOTP. WIth this change, the js will be only loaded on the U2F login screen and in the two-factor auth settings.