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

Add MINIMUM_AGE_TO_TRUST variable #1188

Merged
merged 4 commits into from
Nov 21, 2022

Conversation

mohammadrafigh
Copy link
Contributor

Closes #1187

Proposed Changes

  • Added an environment variable to set minimum account age to trust.

Please check that the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Added yourself to AUTHORS.rst

I'm not a Python developer, so please review carefully.

@rolandgeider
Copy link
Member

Yes this is a good idea. I'm not sure right now if we mention the specific account age somewhere in the UI or just say something more general like the account needs to be of a certain age.

@rolandgeider
Copy link
Member

And hooray for tests! ;)

@mohammadrafigh
Copy link
Contributor Author

hmmm, yes it seems it's set in constants in the react project https://github.com/wger-project/react/blob/b038be369dab81782fa2b612cf40efdd7f112a12/src/utils/consts.ts#L3

Sent a PR there too.

@rolandgeider
Copy link
Member

Looks good, thanks! And you even got to do a multi repo PR 😁

But now that I'm looking at it, perhaps we could name this something like MINIMUM_ACCOUNT_AGE or better MIN_ACCOUNT_AGE_TO_TRUST?

@mohammadrafigh
Copy link
Contributor Author

mohammadrafigh commented Nov 21, 2022 via email

@mohammadrafigh
Copy link
Contributor Author

Done, feel free to squash commits.

@rolandgeider rolandgeider merged commit a1a270a into wger-project:master Nov 21, 2022
@rolandgeider
Copy link
Member

Merged, thanks

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.

Remove or edit minimum account age for trustworthy
2 participants