Commit aac3d3d90d51b5a3d8746f0dd2b7f6920981bc8c

Authored by Caio Almeida
1 parent 88565c87

load state and city after login

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
www/js/controllers.js
... ... @@ -122,6 +122,7 @@ angular.module('confjuvapp.controllers', [])
122 122 $scope.closeModal();
123 123 var popup = $ionicPopup.alert({ title: 'Login', template: 'Login efetuado com sucesso!' });
124 124 $scope.profile = resp.data.person;
  125 + $scope.setStateAndCityOfProfile();
125 126 popup.then(function() {
126 127 $scope.loginCallback(resp.data.private_token);
127 128 });
... ...