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

14 lines
436 B
JavaScript
Raw Normal View History

2015-12-09 04:35:05 +01:00
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;
};
});