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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user