fix forms: login and create profile

This commit is contained in:
Gustavo Maximiliano Cortez 2014-10-09 18:53:31 -03:00 committed by Matias Alejo Garcia
commit 662d61d2a9
5 changed files with 64 additions and 33 deletions

View file

@ -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,