1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

two factor edits

This commit is contained in:
Kyle Spearrin
2017-02-11 17:08:06 -05:00
parent cf1bffe2f1
commit 71e4697562
3 changed files with 14 additions and 4 deletions

View File

@@ -52,11 +52,19 @@
};
$scope.twoFactor = function () {
$uibModal.open({
var twoFactorModal = $uibModal.open({
animation: true,
templateUrl: 'app/settings/views/settingsTwoFactor.html',
controller: 'settingsTwoFactorController'
});
twoFactorModal.result.then(function (enabled) {
if (enabled == null) {
return;
}
$scope.model.twoFactorEnabled = enabled;
});
};
$scope.sessions = function () {