瀏覽代碼

login force full page reload

Torkel Ödegaard 11 年之前
父節點
當前提交
47f226be3b
共有 1 個文件被更改,包括 1 次插入1 次删除
  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";