mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
analytics event tracking
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
angular
|
||||
.module('bit.accounts')
|
||||
|
||||
.controller('accountsLoginTwoFactorController', function ($scope, $state, loginService, toastr, utilsService) {
|
||||
.controller('accountsLoginTwoFactorController', function ($scope, $state, loginService, toastr, utilsService,
|
||||
$analytics) {
|
||||
$scope.model = {};
|
||||
utilsService.initListSectionItemListeners($(document));
|
||||
$('#code').focus();
|
||||
@@ -15,6 +16,7 @@
|
||||
|
||||
$scope.loginPromise = loginService.logInTwoFactor(model.code);
|
||||
$scope.loginPromise.then(function () {
|
||||
$analytics.eventTrack('Logged In From Two-step');
|
||||
$state.go('tabs.vault', { animation: 'in-slide-left', syncOnLoad: true });
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user