Page 1 of 1

Pruning User Accounts

Posted: Jan 24, 2019 4:27 pm
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

Re: Pruning User Accounts

Posted: Jan 25, 2019 5:19 am
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.

Re: Pruning User Accounts

Posted: Feb 02, 2019 1:56 pm
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?

Re: Pruning User Accounts

Posted: Feb 02, 2019 5:56 pm
by cas
$t_days_old =0;
This you could have tested yourself with a test system. Quite useful for new users :mrgreen: