Skip to content

Commit

Permalink
Fixing issue with missing forgery tokens
Browse files Browse the repository at this point in the history
Fixed the issue where opening the page with an existing asp.net auth
cookie (i.e being signed in) wouldn't pass the anti-forgery token on save
calls
  • Loading branch information
domholmes committed Mar 26, 2014
1 parent 4a75bd7 commit a3fa89d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Web/Squirrel/Scripts/viewmodels/authViewModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@

appendGpSignInScript(options);

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

isSignedIn(options.user.isAuthenticated);
isSignedIn.subscribe(isSignedInChange);
antiForgeryToken.subscribe(antiForgeryTokenChange);
}

function signIn() {
Expand Down

0 comments on commit a3fa89d

Please sign in to comment.