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

new two-factor management page

This commit is contained in:
Kyle Spearrin
2017-06-19 22:26:57 -04:00
parent 10fe79c558
commit 00e74dd2c8
9 changed files with 150 additions and 195 deletions

View File

@@ -2,7 +2,7 @@
.module('bit.settings')
.controller('settingsTwoStepController', function ($scope, apiService, authService, toastr, $analytics, constants,
$filter) {
$filter, $uibModal) {
$scope.providers = [
{
type: constants.twoFactorProvider.authenticator,
@@ -53,4 +53,21 @@
authService.getUserProfile().then(function (profile) {
_profile = profile;
});
$scope.edit = function (provider) {
if (provider.type === constants.twoFactorProvider.authenticator) {
var authenticatorModal = $uibModal.open({
animation: true,
templateUrl: 'app/settings/views/settingsTwoStepAuthenticator.html',
controller: 'settingsTwoStepAuthenticatorController',
resolve: {
enabled: function () { return provider.enabled; }
}
});
authenticatorModal.result.then(function () {
});
}
};
});