mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-10 06:08:34 +02:00
14 lines
436 B
JavaScript
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;
|
|
};
|
|
});
|