diff --git a/ConfJuvApp/config.xml b/ConfJuvApp/config.xml
index d5bd1d6..2a99bf1 100644
--- a/ConfJuvApp/config.xml
+++ b/ConfJuvApp/config.xml
@@ -1,14 +1,12 @@
ConfJuvApp
-
- An Ionic Framework and Cordova project.
-
-
- Ionic Framework Team
-
+ Aplicativo móvel para 3ª Conferência Nacional de Juventude
+
+
+
@@ -38,4 +36,4 @@
-
\ No newline at end of file
+
diff --git a/ConfJuvApp/www/index.html b/ConfJuvApp/www/index.html
index 55cbf87..753e3ad 100644
--- a/ConfJuvApp/www/index.html
+++ b/ConfJuvApp/www/index.html
@@ -4,7 +4,7 @@
-
3ª Conferência Nacional de Juventude
+ ConfJuvApp
diff --git a/ConfJuvApp/www/js/controllers.js b/ConfJuvApp/www/js/controllers.js
index 4d5bd77..70c547f 100644
--- a/ConfJuvApp/www/js/controllers.js
+++ b/ConfJuvApp/www/js/controllers.js
@@ -46,25 +46,22 @@ angular.module('confjuvapp.controllers', [])
$scope.loading = true;
- var req = {
- method: 'POST',
- url: ConfJuvAppUtils.pathTo('login'),
+ var config = {
headers: {
- 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
+ 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
},
- data: jQuery.param(data)
+ timeout: 10000
}
- $http(req)
- .success(function(data, status, headers, config) {
+ $http.post(ConfJuvAppUtils.pathTo('login'), jQuery.param(data), config)
+ .then(function(resp) {
$scope.closeModal();
$ionicPopup.alert({ title: 'Login', template: 'Login efetuado com sucesso!' });
ConfJuvAppUtils.loggedIn = true;
$scope.loading = false;
- })
- .error(function(data, status, headers, config) {
+ }, function(err) {
$scope.closeModal();
- var popup = $ionicPopup.alert({ title: 'Login', template: 'Erro ao efetuar login, por favor tente novamente.' });
+ var popup = $ionicPopup.alert({ title: 'Login', template: 'Erro ao efetuar login. Verifique usuário e senha e conexão com a internet.' });
ConfJuvAppUtils.loggedIn = false;
$scope.loading = false;
popup.then(function() {
--
libgit2 0.21.2