Pruning User Accounts

Get help from other users here.

Moderators: Contributor, Developer

Post Reply
truefriend-cz
Posts: 65
Joined: Jan 08, 2019 2:14 am

Pruning User Accounts

Post by truefriend-cz » Jan 24, 2019 4:27 pm

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.19.0, OS: Windows, PHP: 7.3, Charset (PHP, Database): UTF-8, and: little, bad english

cas
Posts: 469
Joined: Mar 11, 2006 11:08 am
Contact:

Re: Pruning User Accounts

Post by cas » Jan 25, 2019 5:19 am

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: 65
Joined: Jan 08, 2019 2:14 am

Re: Pruning User Accounts

Post by truefriend-cz » Feb 02, 2019 1:56 pm

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.19.0, OS: Windows, PHP: 7.3, Charset (PHP, Database): UTF-8, and: little, bad english

cas
Posts: 469
Joined: Mar 11, 2006 11:08 am
Contact:

Re: Pruning User Accounts

Post by cas » Feb 02, 2019 5:56 pm

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

Post Reply