|
|
| Database: |
Any
|
| Participants: |
Daniele Cordella and Eloy Lafuente (stronk7)
|
| Security Level: |
None
|
| Resolved date: |
07/Jul/07
|
| Affected Branches: |
MOODLE_18_STABLE, MOODLE_19_STABLE
|
| Fixed Branches: |
MOODLE_18_STABLE, MOODLE_19_STABLE
|
|
There are two places where the "guest" user is created. Both admin/index.php and login/index.php are able to create such record in the user tables.
But when the user is created from login/index.php, the mnethostid isn't set, so defaults to 0, and with that value, it doesn't work anymore.
So plan is:
1) Create one new create_guest_user() function under moodlelib.php with correct settings.
2) Use it from admin/index.php and login/index.php
3) Provide a small upgrade to fix broken sites (I've seen some of them).
Ciao :-)
|
|
Description
|
There are two places where the "guest" user is created. Both admin/index.php and login/index.php are able to create such record in the user tables.
But when the user is created from login/index.php, the mnethostid isn't set, so defaults to 0, and with that value, it doesn't work anymore.
So plan is:
1) Create one new create_guest_user() function under moodlelib.php with correct settings.
2) Use it from admin/index.php and login/index.php
3) Provide a small upgrade to fix broken sites (I've seen some of them).
Ciao :-) |
Show » |
committed 1 file to 'Moodle CVS' on branch 'MOODLE_18_STABLE' - 07/Jul/07 01:37 AM
Adding new, central, create_guest_record() function. MDL-10375
|
|
|
committed 2 files to 'Moodle CVS' on branch 'MOODLE_18_STABLE' - 07/Jul/07 01:39 AM
Use the new, central, create_guest_record() function. MDL-10375
|
|
|
committed 2 files to 'Moodle CVS' on branch 'MOODLE_18_STABLE' - 07/Jul/07 01:43 AM
Small upgrade to fix some guest->mnethostid. MDL-10375
|
|
|
committed 1 file to 'Moodle CVS' - 07/Jul/07 01:51 AM
Adding new, central, create_guest_record() function. MDL-10375
Merged from MOODLE_18_STABLE
|
|
|
committed 2 files to 'Moodle CVS' - 07/Jul/07 01:54 AM
Use the new, central, create_guest_record() function. MDL-10375
Merged from MOODLE_18_STABLE
|
|
|
committed 2 files to 'Moodle CVS' - 07/Jul/07 02:01 AM
Small upgrade to fix some guest->mnethostid. MDL-10375
Merged from MOODLE_18_STABLE
|
|
|
|