Load Javascript U2F library selectively.
1. Only on supported Chrome versions 2. Mainly, this lets us simplify the javascript-based U2F check to `window.u2f`, where `window.u2f` can either be loaded from the GitLab server (for Chrome) or from the Firefox extension. 3. This is a better way to provide browser detection for U2F.
显示
- CHANGELOG 1 个添加, 0 个删除CHANGELOG
- app/assets/javascripts/application.js.coffee 0 个添加, 1 个删除app/assets/javascripts/application.js.coffee
- app/assets/javascripts/u2f/util.js.coffee.erb 1 个添加, 13 个删除app/assets/javascripts/u2f/util.js.coffee.erb
- app/controllers/application_controller.rb 0 个添加, 4 个删除app/controllers/application_controller.rb
- app/controllers/concerns/authenticates_with_two_factor.rb 1 个添加, 2 个删除app/controllers/concerns/authenticates_with_two_factor.rb
- app/controllers/profiles/two_factor_auths_controller.rb 1 个添加, 2 个删除app/controllers/profiles/two_factor_auths_controller.rb
- app/helpers/u2f_helper.rb 5 个添加, 0 个删除app/helpers/u2f_helper.rb
- app/views/devise/sessions/two_factor.html.haml 4 个添加, 0 个删除app/views/devise/sessions/two_factor.html.haml
- app/views/profiles/two_factor_auths/show.html.haml 4 个添加, 0 个删除app/views/profiles/two_factor_auths/show.html.haml
- config/application.rb 1 个添加, 0 个删除config/application.rb
加载中
想要评论请 注册 或 登录