Added in debug statements to diagnose problem in production

This commit is contained in:
Nathan Leniz
2015-02-14 21:55:24 -05:00
parent d66f6bebf5
commit 68ad6f9831
2 changed files with 3 additions and 0 deletions

View File

@@ -202,6 +202,7 @@ profileValidation.directive('existingUsername', function($http) {
}
if (element.val()) {
$http.get("/api/checkExistingUsername/" + element.val()).success(function (data) {
console.log('Data received from api call is: ', data);
ngModel.$setValidity('exists', data);
});
}