identity now emits!
This commit is contained in:
parent
57299d675e
commit
3ae6378678
33 changed files with 376 additions and 346 deletions
|
|
@ -22,7 +22,19 @@ angular.module('copayApp.controllers').controller('HomeController', function($sc
|
|||
$scope.error = 'Please enter the required fields';
|
||||
return;
|
||||
}
|
||||
identityService.open($scope, form);
|
||||
$rootScope.starting = true;
|
||||
identityService.open(form.email.$modelValue, form.password.$modelValue, function(err) {
|
||||
$rootScope.starting = false;
|
||||
if (err) {
|
||||
copay.logger.warn(err);
|
||||
if ((err.toString() || '').match('PNOTFOUND')) {
|
||||
$scope.error = 'Invalid email or password';
|
||||
} else {
|
||||
$scope.error = 'Unknown error';
|
||||
}
|
||||
$rootScope.$digest()
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function getParam(sname) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue