Skip to content

Commit 0ece5d7

Browse files
josxbeeman
authored andcommitted
Fix user data lost colmena#96
Signed-off-by: José Luis Di Biase <josx@interorganic.com.ar>
1 parent 4bfc535 commit 0ece5d7

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

client/app/modules/core/controllers/main.ctrl.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,14 @@
77
* @requires $state
88
* @requires $location
99
* @requires CoreService
10-
* @requires AppAuth
1110
* @requires User
1211
* @requires gettextCatalog
1312
**/
1413
angular.module('com.module.core')
1514
.controller('MainCtrl', function($scope, $rootScope, $state, $location,
16-
CoreService, User, gettextCatalog, AppAuth) {
15+
CoreService, User, gettextCatalog) {
1716

18-
AppAuth.ensureHasCurrentUser(function(user)
19-
{
20-
$scope.currentUser = user;
21-
});
17+
$scope.currentUser = User.getCurrent();
2218

2319
$scope.menuoptions = $rootScope.menu;
2420

0 commit comments

Comments
 (0)