login force full page reload

This commit is contained in:
Torkel Ödegaard 2014-12-28 19:29:41 +01:00
parent cfabccc5f2
commit 47f226be3b

View File

@ -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";