Change in mdl_config table during migration to 1.6 beta 5

Change in mdl_config table during migration to 1.6 beta 5

deur Anthony Borrow -
Getal antwoorde: 4
Prentjie van Core developers Prentjie van Plugin developers Prentjie van 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.
Gemiddeld van beoordelings: -
In antwoord op Anthony Borrow

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

deur Martin Dougiamas -
Prentjie van Core developers Prentjie van Documentation writers Prentjie van Moodle HQ Prentjie van Particularly helpful Moodlers Prentjie van Plugin developers Prentjie van 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.
Gemiddeld van beoordelings: -
In antwoord op Martin Dougiamas

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

deur Martin Dougiamas -
Prentjie van Core developers Prentjie van Documentation writers Prentjie van Moodle HQ Prentjie van Particularly helpful Moodlers Prentjie van Plugin developers Prentjie van 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 knipoog) has broken things here. cvs:/moodle/admin/auth.php

Yu is onto it.
Gemiddeld van beoordelings: -
In antwoord op Martin Dougiamas

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

deur 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
Gemiddeld van beoordelings: -
In antwoord op Yu Zhang

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

deur Anthony Borrow -
Prentjie van Core developers Prentjie van Plugin developers Prentjie van Testers

Thank Yu (and Martin) for working on this. I was using manual authentication and I will check out the changes in CVS when I return (I will be out of town until July 6). Happy Moodling!

Gemiddeld van beoordelings: -