fix forms: login and create profile
This commit is contained in:
parent
0b7e9be611
commit
662d61d2a9
5 changed files with 64 additions and 33 deletions
|
|
@ -4,7 +4,10 @@ angular.module('copayApp.controllers').controller('CreateProfileController', fun
|
|||
controllerUtils.redirIfLogged();
|
||||
|
||||
$scope.createProfile = function(form) {
|
||||
|
||||
if (form && form.$invalid) {
|
||||
notification.error('Error', 'Please enter the required fields');
|
||||
return;
|
||||
}
|
||||
$scope.loading = true;
|
||||
copay.Identity.create(form.email.$modelValue, form.password.$modelValue, {
|
||||
pluginManager: pluginManager,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue