Change in mdl_config table during migration to 1.6 beta 5

Change in mdl_config table during migration to 1.6 beta 5

дэргэд Anthony Borrow -
Хариу нийтлэлийн тоо: 4
Core developers зураг Plugin developers зураг Testers зураг
I recently upgraded my production server to Moodle 1.6 from 1.5.3+. I went in to change a user's password and noticed that I no longer had access to the checkbox to force them to change the password when they login. So, as good Moodlers do, I dug into the code to see what was happening. I did not see anywhere in the user interface to change the value of the changepassword field in the mdl_config table to 1. Is this an undocumented feature? It would seem that it would be nice under security or admin or even as a hidden variable in the config.php. In either case, what caught my attention was that this value was set to a value of 1 in the previous database; however, after the migration it was cleared to a value of blank. I generally do not like to see values/settings changed without at least informing me. If others run into this minor issue, the fix is simply to use phpmyadmin and set the value of the changepassword field to 1. Technically this is UPDATE mdl_config SET value=1 WHERE name='changepassword'. My question for a developer would be, is this something that Moodle should be changing behind the scenes or is it a bug, or simply an 'undocumented feature', or does it seem to be a something isolated to my installation/conversion of the database? I had backed up the database (latin 1) using MySQLAdministrator and restored to a UTF-8 database. For the most part the migration seems to have been a success. Peace.
Үнэлгээний дундаж: -
Anthony Borrow-н хариуд

Re: Change in mdl_config table during migration to 1.6 beta 5

дэргэд Martin Dougiamas -
Core developers зураг Documentation writers зураг Moodle HQ зураг Particularly helpful Moodlers зураг Plugin developers зураг Testers зураг
The setting should be under your Authentication plugin settings Admin >> User >> Authentication

Normally it should be blank, otherwise it contains a URL.

I'll ask Yu to look into this.
Martin Dougiamas-н хариуд

Re: Change in mdl_config table during migration to 1.6 beta 5

дэргэд Martin Dougiamas -
Core developers зураг Documentation writers зураг Moodle HQ зураг Particularly helpful Moodlers зураг Plugin developers зураг Testers зураг
Ah I see, it's been replaced with a setting for each authentication type, eg for CAS there are two settings:

auth_cas_changepasswordurl
auth_cas_changepasswordhelp

But hmmm ... all this is not working properly ... someone (by which I mean Howard нүд ирмэх) has broken things here. cvs:/moodle/admin/auth.php

Yu is onto it.
Martin Dougiamas-н хариуд

Re: Change in mdl_config table during migration to 1.6 beta 5

дэргэд Yu Zhang -
Hi,

Fixed this in CVS so that when you edit another user's profile, you can see the checkbox for forced password changed, if using internal auth.

Yu