diff options
author | Jan Beckmann <king-jan1999@hotmail.de> | 2018-06-25 08:03:08 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-06-25 08:03:08 +0000 |
commit | a6d3727f7dbb15a061ee26ce2d7e4ed472c1016a (patch) | |
tree | 2b6cf47645a506ea2b81347b2708f7c74acb3cbb /app/assets/javascripts/u2f | |
parent | ff9b99ca5ae83c92e95100f5999bcb00c59148b0 (diff) | |
download | gitlab-ce-a6d3727f7dbb15a061ee26ce2d7e4ed472c1016a.tar.gz |
Resolve "2FA should not attempt to use U2F in unsupported browsers"
Diffstat (limited to 'app/assets/javascripts/u2f')
-rw-r--r-- | app/assets/javascripts/u2f/authenticate.js | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/app/assets/javascripts/u2f/authenticate.js b/app/assets/javascripts/u2f/authenticate.js index 96af6d2fcca..78fd7ad441f 100644 --- a/app/assets/javascripts/u2f/authenticate.js +++ b/app/assets/javascripts/u2f/authenticate.js @@ -11,7 +11,6 @@ export default class U2FAuthenticate { constructor(container, form, u2fParams, fallbackButton, fallbackUI) { this.u2fUtils = null; this.container = container; - this.renderNotSupported = this.renderNotSupported.bind(this); this.renderAuthenticated = this.renderAuthenticated.bind(this); this.renderError = this.renderError.bind(this); this.renderInProgress = this.renderInProgress.bind(this); @@ -41,7 +40,6 @@ export default class U2FAuthenticate { this.signRequests = u2fParams.sign_requests.map(request => _(request).omit('challenge')); this.templates = { - notSupported: '#js-authenticate-u2f-not-supported', setup: '#js-authenticate-u2f-setup', inProgress: '#js-authenticate-u2f-in-progress', error: '#js-authenticate-u2f-error', @@ -55,7 +53,7 @@ export default class U2FAuthenticate { this.u2fUtils = utils; this.renderInProgress(); }) - .catch(() => this.renderNotSupported()); + .catch(() => this.switchToFallbackUI()); } authenticate() { @@ -96,10 +94,6 @@ export default class U2FAuthenticate { this.fallbackButton.classList.add('hidden'); } - renderNotSupported() { - return this.renderTemplate('notSupported'); - } - switchToFallbackUI() { this.fallbackButton.classList.add('hidden'); this.container[0].classList.add('hidden'); |