diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-11-03 12:52:08 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-11-03 12:52:08 -0800 |
commit | 89b5c35ae19f81d8ead9109ea2c9d5871d419f8c (patch) | |
tree | 03b62282892ec270e04d8fb5bdaf3e1c10f83ef7 /samples/OpenIdProviderWebForms/Code/CustomStore.cs | |
parent | b13badacaeddc376c563889c472d64812cc8e8d3 (diff) | |
parent | d85f1056a53bd1c32a223cefab946d339052911d (diff) | |
download | DotNetOpenAuth-89b5c35ae19f81d8ead9109ea2c9d5871d419f8c.zip DotNetOpenAuth-89b5c35ae19f81d8ead9109ea2c9d5871d419f8c.tar.gz DotNetOpenAuth-89b5c35ae19f81d8ead9109ea2c9d5871d419f8c.tar.bz2 |
Merge branch 'v3.1' into v3.2
Conflicts:
src/version.txt
Diffstat (limited to 'samples/OpenIdProviderWebForms/Code/CustomStore.cs')
-rw-r--r-- | samples/OpenIdProviderWebForms/Code/CustomStore.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/samples/OpenIdProviderWebForms/Code/CustomStore.cs b/samples/OpenIdProviderWebForms/Code/CustomStore.cs index d8181fe..7face0b 100644 --- a/samples/OpenIdProviderWebForms/Code/CustomStore.cs +++ b/samples/OpenIdProviderWebForms/Code/CustomStore.cs @@ -109,13 +109,14 @@ namespace OpenIdProviderWebForms.Code { // 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; } } |