1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 17:53:39 +00:00

2fa support

This commit is contained in:
Kyle Spearrin
2018-02-01 22:59:04 -05:00
parent 0328977c14
commit fd15c09406
14 changed files with 681 additions and 28 deletions

View File

@@ -92,8 +92,8 @@ const syncService = new SyncService(userService, apiService, settingsService,
const passwordGenerationService = new PasswordGenerationService(cryptoService, storageService);
const totpService = new TotpService(storageService);
const containerService = new ContainerService(cryptoService, platformUtilsService);
const authService: AuthServiceAbstraction = new AuthService(cryptoService, apiService,
userService, tokenService, appIdService, platformUtilsService, constantsService,
const authService = new AuthService(cryptoService, apiService,
userService, tokenService, appIdService, i18nService, platformUtilsService, constantsService,
messagingService);
const analytics = new Analytics(window, null, platformUtilsService, storageService, appIdService);
@@ -105,6 +105,7 @@ environmentService.setUrlsFromStorage().then(() => {
function initFactory(i18n: I18nService, platformUtilsService: DesktopPlatformUtilsService): Function {
return async () => {
await i18n.init();
await authService.init();
const htmlEl = window.document.documentElement;
htmlEl.classList.add('os_' + platformUtilsService.getDeviceString());
htmlEl.classList.add('locale_' + i18n.translationLocale);