1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-10 06:08:34 +02:00
bitwarden-browser/src/Vault/wwwroot/app/accounts/accountsRegisterController.js
2015-12-08 22:35:05 -05:00

14 lines
436 B
JavaScript

angular
.module('bit.accounts')
.controller('accountsRegisterController', function ($scope, $rootScope, apiService) {
$scope.success = false;
$scope.registerPromise = null;
$scope.register = function (model) {
$scope.registerPromise = apiService.accounts.registerToken({ email: model.email }, function () {
$scope.success = true;
}).$promise;
};
});