Add queue task to purge inactive users #3525
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #3408
Closes #2248
New option in StaffCP Registration section
![Screenshot 2024-07-14 at 13 19 24](https://private-user-images.githubusercontent.com/1812544/348542031-1149e8d3-e0b4-4ee6-a321-0b747e62a754.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ4MDU2NTUsIm5iZiI6MTcyNDgwNTM1NSwicGF0aCI6Ii8xODEyNTQ0LzM0ODU0MjAzMS0xMTQ5ZThkMy1lMGI0LTRlZTYtYTMyMS0wYjc0N2U2MmE3NTQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjhUMDAzNTU1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Y2U0YjZiYjU1ZTA1OTZmZjc1MjI3ODRlZDg5MDRmMzNkMjJlYTg2ZDZlNTczN2EwNGU5YTMyMTA5YTU1NDg4NyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.RDpytjdu-FDfm7OVRQdSxJhi4_5AlvjspgRnubs63OA)
Successful run (cutoff 853 days)
![Screenshot 2024-07-14 at 13 17 42](https://private-user-images.githubusercontent.com/1812544/348541919-479e3828-2471-4ac0-bf8f-6ceb047f495c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ4MDU2NTUsIm5iZiI6MTcyNDgwNTM1NSwicGF0aCI6Ii8xODEyNTQ0LzM0ODU0MTkxOS00NzllMzgyOC0yNDcxLTRhYzAtYmY4Zi02Y2ViMDQ3ZjQ5NWMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjhUMDAzNTU1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OGE0MmU0NzZhOGE0MzRkZjc3ZWFjYWMzYmNiNmRiZjM5MmUxYTZiNzY3NGZhYTkxZDUzMzZmYjQzYTQ3NGNmMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.VEgQBqnJHBoFHqOHUiHylk_7KkhifgCWB6slm9xkndk)
Successful run (cutoff 0 days, i.e. disabled)
![Screenshot 2024-07-14 at 13 18 58](https://private-user-images.githubusercontent.com/1812544/348542026-46b3e72e-24a2-4c3f-ae57-2345188bc3d6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ4MDU2NTUsIm5iZiI6MTcyNDgwNTM1NSwicGF0aCI6Ii8xODEyNTQ0LzM0ODU0MjAyNi00NmIzZTcyZS0yNGEyLTRjM2YtYWU1Ny0yMzQ1MTg4YmMzZDYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjhUMDAzNTU1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Y2Y2MjA2M2NhMGE1OWQyOWRiOGRlMWEzM2ZlMzI1NjAwNTZiYWJlMDEyZTM4OWU4MjI2MGE5ZjFkNGQwZDc5NyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.ttoOF5cu5-gkBf0Ff3CRCVTYGGKpIFQ9MOIifa8tCOo)