mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 23:33:31 +00:00
initial commit of source
This commit is contained in:
13
src/Vault/wwwroot/app/accounts/accountsRegisterController.js
Normal file
13
src/Vault/wwwroot/app/accounts/accountsRegisterController.js
Normal file
@@ -0,0 +1,13 @@
|
||||
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;
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user