Skip to content

fix(config): update minimum age year from 2005 to 2007 for accuracy#1626

Closed
PhilCode-creator wants to merge 1 commit into
esx-framework:devfrom
PhilCode-creator:patch-1
Closed

fix(config): update minimum age year from 2005 to 2007 for accuracy#1626
PhilCode-creator wants to merge 1 commit into
esx-framework:devfrom
PhilCode-creator:patch-1

Conversation

@PhilCode-creator

@PhilCode-creator PhilCode-creator commented Mar 30, 2025

Copy link
Copy Markdown

Description

Just a update to match the right year because its 2025 and you can be 18 years old if you are born in 2007


Motivation

I just opend the config and it bothered me


Implementation Details

Just a Config value update

Usage Example

None

PR Checklist

  • My commit messages and PR title follow the Conventional Commits standard.
  • My changes have been tested locally and function as expected.
  • My PR does not introduce any breaking changes.
  • I have provided a clear explanation of what my PR does, including the reasoning behind the changes and any relevant context.

@github-project-automation github-project-automation Bot moved this to 🆕 To be Discussed in ESX Roadmap Mar 30, 2025
@Gellipapa Gellipapa changed the base branch from main to dev March 30, 2025 21:39
@YOMAN1792

Copy link
Copy Markdown
Contributor

Hello, can you change the comment that tells how old you’ll be today, please?

@PhilCode-creator

PhilCode-creator commented Mar 31, 2025

Copy link
Copy Markdown
Author

Hello, can you change the comment that tells how old you’ll be today, please?

what exactly do you mean with that? I mean thats the old one or do you mean with the pr

@YOMAN1792

Copy link
Copy Markdown
Contributor

Hello, can you change the comment that tells how old you’ll be today, please?

what exactly do you mean with that? I mean thats the old one or do you mean with the pr

Line 16 of the file in the comment if you can update the age do it can be accurate please.

@tomiichx

tomiichx commented Apr 1, 2025

Copy link
Copy Markdown
Contributor

You could instead do the calculation automatically by simply specifying the min. age required..? Do you want to keep coming back every year to PR such changes?

@Zykem Zykem left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hey, thanks for the PR! Can you update the script to automatically set the minimum age to 18, instead of just changing the config value? That way, it will be handled dynamically. We dont want to continue working with the same bad code from the previous team members, so we prefer to upgrade ESX properly.

Eventually, you could create a new config property like:

Config.MinimumAge = 18

Then, when registering the identity, you can check the users age to make sure it matches the minimum age set in the config. But we wont approve changes that continue to use this “bad” code.

@github-project-automation github-project-automation Bot moved this from 🆕 To be Discussed to In-Development in ESX Roadmap Apr 2, 2025
@Zykem Zykem mentioned this pull request Apr 28, 2025
@Zykem

Zykem commented Apr 28, 2025

Copy link
Copy Markdown
Member

Hi, we implemented a different solution for this problem. Thank you for the effort you put in this PR.

New PR

@Zykem Zykem closed this Apr 28, 2025
@github-project-automation github-project-automation Bot moved this from In-Development to Recycle Bin in ESX Roadmap Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Recycle Bin

Development

Successfully merging this pull request may close these issues.

5 participants