astrix/hide enrolment database password

astrix/hide enrolment database password

by Jalil K -
Number of replies: 2

Hi Guys,

When you type in the username and the password of the enrolment database, is there a way to actually astrix out the password? We have two Moodle administrators, and one of them should not have the password to access the entire root folder.

Any help would be much appreciated.

Thanks

JalilK

Average of ratings: -
In reply to Jalil K

Re: astrix/hide enrolment database password

by Iñaki Arenaza -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I'm not sure I really understand what you want to do. But if I did it right, edit file .../enrol/database/config.html and search the line that reads:

<input size="15" type="text" name="enrol_dbpass" value="<?php echo $frm->enrol_dbpass ?>" />

and change it to:

<input size="15" type="password" name="enrol_dbpass" value="<?php echo $frm->enrol_dbpass ?>" />

That should hide the external database password.

Saludos. Iñaki.

In reply to Iñaki Arenaza

Re: astrix/hide enrolment database password

by Jalil K -

Thanks Iñaki,

I shall try this when I have access to the files.

JalilK