1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

select another two factor method

This commit is contained in:
Kyle Spearrin
2017-06-26 16:36:56 -04:00
parent 7815af24e5
commit 64784d0e36
7 changed files with 116 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
.module('bit.accounts')
.controller('accountsLoginTwoFactorController', function ($scope, $state, authService, toastr, utilsService,
$analytics, i18nService, $stateParams, $filter, constantsService, $timeout, $window, cryptoService) {
$analytics, i18nService, $stateParams, $filter, constantsService, $timeout, $window, cryptoService, apiService) {
$scope.i18n = i18nService;
utilsService.initListSectionItemListeners($(document), angular);
@@ -56,6 +56,17 @@
});
};
$scope.anotherMethod = function () {
$analytics.eventTrack('Selected Another Two Factor Method');
$state.go('twoFactorMethods', {
animation: 'in-slide-up',
email: email,
masterPassword: masterPassword,
providers: providers,
provider: $scope.providerType
});
};
function getDefaultProvider(twoFactorProviders) {
var keys = Object.keys(twoFactorProviders);
var providerType = null;