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

Use a better OlderThan for DeleteInactiveUsers #19693

Merged
merged 3 commits into from May 13, 2022

Conversation

Gusted
Copy link
Contributor

@Gusted Gusted commented May 12, 2022

  • Currently the OlderThan is zero, for instances that enable or run this task this could actually delete just new created users that still need to confirm their email.
  • This patch fixes that by setting the default OlderThan to the ActiveCodeLives setting, which corresponds to the amount of time that a user can active their account via email and thus avoiding the issue of deleting 'legit' unactivated users.

- Currently the OlderThan is zero, for instances that enable or run this
task this could actually delete just new users that still need to
confirm their email. This patch fixes that by setting the default to the
`ActiveCodeLives` setting, which corresponds to the amount of time that
a user can active their account, thus avoiding the issue of deleting
unactivated email users.
@techknowlogick techknowlogick added the type/enhancement An improvement of existing functionality label May 12, 2022
@techknowlogick techknowlogick added this to the 1.17.0 milestone May 12, 2022
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label May 12, 2022
@6543
Copy link
Member

6543 commented May 12, 2022

docs/content/doc/advanced/config-cheat-sheet.en-us.md
551:- `ACTIVE_CODE_LIVE_MINUTES`: **180**: Time limit (min) to confirm account/email registration.

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels May 13, 2022
@6543
Copy link
Member

6543 commented May 13, 2022

.

@6543 6543 merged commit 61f9393 into go-gitea:main May 13, 2022
zjjhot added a commit to zjjhot/gitea that referenced this pull request May 13, 2022
* giteaofficial/main:
  Use a better OlderThan for DeleteInactiveUsers (go-gitea#19693)
  [skip ci] Updated translations via Crowdin
  Introduce eslint-plugin-jquery (go-gitea#19690)
AbdulrhmnGhanem pushed a commit to kitspace/gitea that referenced this pull request Aug 24, 2022
* Use a better OlderThan for DeleteInactiveUsers

- Currently the OlderThan is zero, for instances that enable or run this
task this could actually delete just new users that still need to
confirm their email. This patch fixes that by setting the default to the
`ActiveCodeLives` setting, which corresponds to the amount of time that
a user can active their account, thus avoiding the issue of deleting
unactivated email users.

* Use correct duration
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants