Details
-
Bug
-
Resolution: Fixed
-
High
-
4.2.0alpha1
-
None
Description
The update_children cronjob doesn't seem to work
In the test case below we update the "Guest accounts" usergroup. However, child of this usergroup (user test) is not updated accordingly
Steps to reproduce
Set up the extension as written in INSTALL.txt on a plain installation
Change ini setting :
[mbpaexSettings] DefaultPasswordLifeTime=3
( =1 is default )
Test case :
Create test user 1. Log in as admin in admin interface 2. Click "User accounts" in top menu 3. Click "Guest accounts" 4. Click "Create here" button 5. First name : te Last name : st Username : test Password : test1 Confirm password : test1 Email : test@example.com 6. Click "Send for publishing" Verify database 1. Run querry : mysql> select * from ezx_mbpaex; 2. Verify that all rows has passwordlifetime=3 Update parent (usergroup) 1. Click "User accounts" in top menu 2. Click "Edit" icon for "Guest accounts" 3. Edit form data: Password LifeTime (DAYS): 4 Update children nodes?: Checked 4. Click "Send for publishing" 5. mysql> select * from ezx_mbpaex; 6. Verify that one row has passwordlifetime=4 and updatechildren=1 7. On the command line, go to the test instance ( .run/ directory ) 8. $php runcronjobs.php updatechildren Verify the result 1. mysql> select * from ezx_mbpaex; 2. Verify that *two* rows now have passwordlifetime=4 3. Verify that all rows has updatechildren=0