Ver código fonte

login force full page reload

Torkel Ödegaard 11 anos atrás
pai
commit
47f226be3b
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/app/controllers/pro/loginCtrl.js

+ 1 - 1
src/app/controllers/pro/loginCtrl.js

@@ -37,7 +37,7 @@ function (angular) {
 
       $http.post('/login', $scope.loginModel).then(function(results) {
         $scope.appEvent('logged-in', results.data.user);
-        $location.path('/');
+        window.location.href = '/';
       }, function(err) {
         if (err.status === 401) {
           $scope.loginError = "Username or password is incorrect";