From bf5d8cab1c8a14f477c93bc6af06470b2d32eb3e Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 27 Jun 2018 17:50:31 -0400 Subject: [PATCH] implement 2fa setup for u2f --- jslib | 2 +- src/app/app.module.ts | 3 + .../two-factor-authenticator.component.html | 2 +- .../settings/two-factor-duo.component.html | 2 +- .../settings/two-factor-email.component.html | 2 +- .../settings/two-factor-setup.component.ts | 7 + .../settings/two-factor-u2f.component.html | 81 +++++++++ src/app/settings/two-factor-u2f.component.ts | 155 ++++++++++++++++++ .../two-factor-yubikey.component.html | 2 +- src/locales/en/messages.json | 27 +++ webpack.config.js | 1 + 11 files changed, 279 insertions(+), 5 deletions(-) create mode 100644 src/app/settings/two-factor-u2f.component.html create mode 100644 src/app/settings/two-factor-u2f.component.ts diff --git a/jslib b/jslib index ec505b8c55..ccd10751e3 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit ec505b8c5508e4c8f6191c946b042a804c73c501 +Subproject commit ccd10751e3b4228f4117fd1ca2f87f8603eac130 diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 943973a0db..5463d81d3b 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -46,6 +46,7 @@ import { TwoFactorAuthenticatorComponent } from './settings/two-factor-authentic import { TwoFactorDuoComponent } from './settings/two-factor-duo.component'; import { TwoFactorEmailComponent } from './settings/two-factor-email.component'; import { TwoFactorSetupComponent } from './settings/two-factor-setup.component'; +import { TwoFactorU2fComponent } from './settings/two-factor-u2f.component'; import { TwoFactorYubiKeyComponent } from './settings/two-factor-yubikey.component'; import { ExportComponent } from './tools/export.component'; @@ -152,6 +153,7 @@ import { SearchCiphersPipe } from 'jslib/angular/pipes/search-ciphers.pipe'; TwoFactorDuoComponent, TwoFactorEmailComponent, TwoFactorOptionsComponent, + TwoFactorU2fComponent, TwoFactorYubiKeyComponent, TwoFactorSetupComponent, UserLayoutComponent, @@ -175,6 +177,7 @@ import { SearchCiphersPipe } from 'jslib/angular/pipes/search-ciphers.pipe'; TwoFactorDuoComponent, TwoFactorEmailComponent, TwoFactorOptionsComponent, + TwoFactorU2fComponent, TwoFactorYubiKeyComponent, ], providers: [], diff --git a/src/app/settings/two-factor-authenticator.component.html b/src/app/settings/two-factor-authenticator.component.html index 520d85e38f..69207de362 100644 --- a/src/app/settings/two-factor-authenticator.component.html +++ b/src/app/settings/two-factor-authenticator.component.html @@ -74,7 +74,7 @@