show error when send email fails

This commit is contained in:
Ivan Socolsky 2014-12-17 17:16:05 -03:00
commit be6811cb4a
5 changed files with 9 additions and 7 deletions

View file

@ -117,6 +117,10 @@ angular.module('copayApp.controllers').controller('CreateProfileController', fun
msg = 'This profile already exists'
$scope.createStep = 'email';
}
if (msg.indexOf('EMAILERROR') >= 0) {
msg = 'Could not send verification email. Please check your email address.';
$scope.createStep = 'email';
}
$scope.error = msg;
} else {
// mobile