1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

configure u2f device

This commit is contained in:
Kyle Spearrin
2017-06-22 17:02:24 -04:00
parent e366b7c7a7
commit 0135476b68
5 changed files with 187 additions and 0 deletions

View File

@@ -111,5 +111,19 @@
provider.enabled = enabled;
});
}
else if (provider.type === constants.twoFactorProvider.u2f) {
var u2fModal = $uibModal.open({
animation: true,
templateUrl: 'app/settings/views/settingsTwoStepU2f.html',
controller: 'settingsTwoStepU2fController',
resolve: {
enabled: function () { return provider.enabled; }
}
});
u2fModal.result.then(function (enabled) {
provider.enabled = enabled;
});
}
};
});