1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 17:23:37 +00:00

duo 2fa config and login with web sdk

This commit is contained in:
Kyle Spearrin
2017-06-21 15:17:44 -04:00
parent 2f3035a08f
commit ca9a0b072e
14 changed files with 262 additions and 12 deletions

View File

@@ -65,8 +65,8 @@
}
});
authenticatorModal.result.then(function () {
authenticatorModal.result.then(function (enabled) {
provider.enabled = enabled;
});
}
else if(provider.type === constants.twoFactorProvider.email) {
@@ -79,8 +79,8 @@
}
});
emailModal.result.then(function () {
emailModal.result.then(function (enabled) {
provider.enabled = enabled;
});
}
else if (provider.type === constants.twoFactorProvider.yubikey) {
@@ -93,8 +93,22 @@
}
});
yubiModal.result.then(function () {
yubiModal.result.then(function (enabled) {
provider.enabled = enabled;
});
}
else if (provider.type === constants.twoFactorProvider.duo) {
var yubiModal = $uibModal.open({
animation: true,
templateUrl: 'app/settings/views/settingsTwoStepDuo.html',
controller: 'settingsTwoStepDuoController',
resolve: {
enabled: function () { return provider.enabled; }
}
});
yubiModal.result.then(function (enabled) {
provider.enabled = enabled;
});
}
};