Skip to content

Commit

Permalink
Preventing 'You have been signed out' message on initial load
Browse files Browse the repository at this point in the history
  • Loading branch information
domholmes committed Mar 24, 2014
1 parent 10fbd89 commit 4a75bd7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Web/Squirrel/Scripts/viewmodels/authViewModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@

antiForgeryToken(options.antiForgeryToken)
isSignedIn(options.user.isAuthenticated);

isSignedIn.subscribe(isSignedInChange);
antiForgeryToken.subscribe(antiForgeryTokenChange);
}

function signIn() {
Expand Down Expand Up @@ -159,9 +162,6 @@
});
}

isSignedIn.subscribe(isSignedInChange);
antiForgeryToken.subscribe(antiForgeryTokenChange);

self = {

isSignedIn: isSignedIn,
Expand Down

0 comments on commit 4a75bd7

Please sign in to comment.