rewerite: refresh when logging in

This commit is contained in:
Tyler Renelle
2013-09-01 13:58:03 -04:00
parent 6efd789e6d
commit 95a897e3a1
+2 -1
View File
@@ -22,7 +22,8 @@ habitrpg.controller("AuthCtrl", ['$scope', '$rootScope', 'Facebook', 'LocalAuth'
};
runAuth = function(id, token) {
User.authenticate(id, token, function(err) {
$rootScope.modals.login = false;
window.location.href = '/';
//$rootScope.modals.login = false;
});
};
$scope.register = function() {