diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-11-03 12:51:48 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-11-03 12:51:48 -0800 |
commit | d85f1056a53bd1c32a223cefab946d339052911d (patch) | |
tree | 138476fa15809351bfdf0bbc17ebdae9976b205f /samples/OpenIdRelyingPartyWebForms/Code/CustomStore.cs | |
parent | 02cc42d668f2c79bbdb62a0824174c54e6060f95 (diff) | |
parent | cf779a797fd80dfe7f6ee89ce94605dda13ba17f (diff) | |
download | DotNetOpenAuth-d85f1056a53bd1c32a223cefab946d339052911d.zip DotNetOpenAuth-d85f1056a53bd1c32a223cefab946d339052911d.tar.gz DotNetOpenAuth-d85f1056a53bd1c32a223cefab946d339052911d.tar.bz2 |
Merge branch 'v3.0' into v3.1
Conflicts:
src/version.txt
Diffstat (limited to 'samples/OpenIdRelyingPartyWebForms/Code/CustomStore.cs')
-rw-r--r-- | samples/OpenIdRelyingPartyWebForms/Code/CustomStore.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/samples/OpenIdRelyingPartyWebForms/Code/CustomStore.cs b/samples/OpenIdRelyingPartyWebForms/Code/CustomStore.cs index 2363aec..07f209b 100644 --- a/samples/OpenIdRelyingPartyWebForms/Code/CustomStore.cs +++ b/samples/OpenIdRelyingPartyWebForms/Code/CustomStore.cs @@ -64,13 +64,14 @@ // at you in the result of a race condition somewhere in your web site UI code // and display some message to have the user try to log in again, and possibly // warn them about a replay attack. + timestamp = timestamp.ToLocalTime(); lock (this) { - if (dataSet.Nonce.FindByCodeContext(nonce, context) != null) { + if (dataSet.Nonce.FindByIssuedCodeContext(timestamp, nonce, context) != null) { return false; } TimeSpan maxMessageAge = DotNetOpenAuth.Configuration.DotNetOpenAuthSection.Configuration.Messaging.MaximumMessageLifetime; - dataSet.Nonce.AddNonceRow(context, nonce, timestamp.ToLocalTime(), (timestamp + maxMessageAge).ToLocalTime()); + dataSet.Nonce.AddNonceRow(context, nonce, timestamp, timestamp + maxMessageAge); return true; } } |