From 95a897e3a1e9612fbcbe79262c4df7bab819c174 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Sun, 1 Sep 2013 13:58:03 -0400 Subject: [PATCH] rewerite: refresh when logging in --- assets/js/controllers/authCtrl.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/js/controllers/authCtrl.js b/assets/js/controllers/authCtrl.js index 1c4642a904..7fdd91d6cc 100644 --- a/assets/js/controllers/authCtrl.js +++ b/assets/js/controllers/authCtrl.js @@ -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() {