mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
14 lines
478 B
JavaScript
14 lines
478 B
JavaScript
angular
|
|
.module('bit.accounts')
|
|
|
|
.controller('accountsPasswordHintController', function ($scope, $rootScope, apiService, $analytics) {
|
|
$scope.success = false;
|
|
|
|
$scope.submit = function (model) {
|
|
$scope.submitPromise = apiService.accounts.postPasswordHint({ email: model.email }, function () {
|
|
$analytics.eventTrack('Requested Password Hint');
|
|
$scope.success = true;
|
|
}).$promise;
|
|
};
|
|
});
|