Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDFHER-77 - Allow age to be equal to the configured minimum age in patronAgeValid #1478

Merged

Conversation

kasperbirch1
Copy link
Contributor

@kasperbirch1 kasperbirch1 commented Oct 8, 2024

Link to issue

https://reload.atlassian.net/browse/DDFHER-77

Description

The issue was that users whose age exactly matched the configured minimum age were being rejected during validation. The logic previously checked if the user's age was strictly greater than the minimum age, which caused this issue.

This pull request updates the age validation to ensure that the calculated age is greater than or equal to the configured minimum age. This resolves the problem by allowing users who are exactly the minimum age to pass validation.

Test

https://varnish.pr-1639.dpl-cms.dplplat01.dpl.reload.dk/

Updated age validation logic to ensure the calculated age can be equal to the configured minimum age. Previously, the check only allowed ages greater than the minimum, which led to invalid rejections for users whose age exactly matched the threshold.
@kasperbirch1 kasperbirch1 changed the title Allow age to be equal to the configured minimum age in patronAgeValid DDFHER-77 - Allow age to be equal to the configured minimum age in patronAgeValid Oct 8, 2024
@rasben rasben assigned kasperbirch1 and unassigned kasperg, xendk and rasben Oct 10, 2024
@kasperbirch1 kasperbirch1 merged commit 3689d60 into develop Oct 10, 2024
20 checks passed
@kasperbirch1 kasperbirch1 deleted the DDFHER-77-invalid-ssn-when-creating-with-mit-id branch October 10, 2024 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants