mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
analytics event tracking
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
angular
|
||||
.module('bit.accounts')
|
||||
|
||||
.controller('accountsHintController', function ($scope, $state, apiService, toastr, $q, utilsService) {
|
||||
.controller('accountsHintController', function ($scope, $state, apiService, toastr, $q, utilsService,
|
||||
$analytics) {
|
||||
$scope.model = {};
|
||||
|
||||
utilsService.initListSectionItemListeners($(document));
|
||||
@@ -21,6 +22,7 @@
|
||||
var request = new PasswordHintRequest(model.email);
|
||||
$scope.submitPromise = hintPromise(request);
|
||||
$scope.submitPromise.then(function () {
|
||||
$analytics.eventTrack('Requested Hint');
|
||||
toastr.success('We\'ve sent you an email with your master password hint.');
|
||||
$state.go('login');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user