mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
configure u2f device
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user