Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Add GracePeriod #383

Merged
merged 3 commits into from
Dec 9, 2022
Merged

Add GracePeriod #383

merged 3 commits into from
Dec 9, 2022

Conversation

elucidsoft
Copy link
Owner

Types of changes

  • New feature (non-breaking change which adds functionality)
  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • [x ] All new and existing tests passed.

@elucidsoft
Copy link
Owner Author

#331

@@ -262,18 +281,20 @@ public static class WebAuthentication
if (!ValidateSignedBy(transaction, serverAccountId, network))
throw new InvalidWebAuthenticationException("Challenge transaction not signed by server");

if (!ValidateTimeBounds(transaction.TimeBounds, now ?? DateTimeOffset.Now))
if (!ValidateTimeBounds(transaction.TimeBounds, now ?? DateTimeOffset.Now.AddSeconds(GracePeriod)))
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the actual change here

Copy link
Collaborator

@Kirbyrawr Kirbyrawr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, however i'm a bit concerned about the format of the scripts, what happened there, is following the .NET standard?

@elucidsoft elucidsoft merged commit 40938e0 into master Dec 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants