Pruning User Accounts

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
truefriend-cz
Posts: 66
Joined: 08 Jan 2019, 07:14

Pruning User Accounts

Post by truefriend-cz »

Hi any.

Do you can anybody test on your Mantis instalation feature functionality Pruning User Accounts?
I have problem. If click the Button for Pruning User Accounts then no deleting unused accounts.

PHP 7.1, Windows, MBT 2.19.0

Thanks
Mantis version: 2.23.0, OS: Windows, PHP: 7.3, Charset (PHP, Database): UTF-8, and: little, bad english
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: Pruning User Accounts

Post by cas »

Pruning works perfectly fine on my instance however be aware of the conditions:
The pruning function allows deleting of user accounts for accounts that have been created more than a week ago, and they never logged in.
truefriend-cz
Posts: 66
Joined: 08 Jan 2019, 07:14

Re: Pruning User Accounts

Post by truefriend-cz »

Where or how i can change week time to zero? For Prunning now after click on button, and no after week for never logged in accounts.

I must change manage_user_prune.php (58):

Code: Select all

$t_days_old = (int)7 * SECONDS_PER_DAY;
to

Code: Select all

$t_days_old = (int)0 * SECONDS_PER_DAY;
only?
Mantis version: 2.23.0, OS: Windows, PHP: 7.3, Charset (PHP, Database): UTF-8, and: little, bad english
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: Pruning User Accounts

Post by cas »

$t_days_old =0;
This you could have tested yourself with a test system. Quite useful for new users :mrgreen:
Post Reply