Hide password in External database password field

Hide password in External database password field

by Michael Rhodes -
Number of replies: 1

Playing around with moodle 2.0 - noticed that the password field for setting up an external database is text (instead of '******") - this was true in 1.x versions of moodle but easily corrected by editing the the file .../enrol/database/config.html and changing the appropriate form field to 'password' - would like some instructions on how to do this in 2.0

 

Average of ratings: -
In reply to Michael Rhodes

Re: Hide password in External database password field

by Michael Rhodes -

Think I figured out - hope it doesn't break anyhting smile - change line 27 (see below in case the code changes) of ../auth/db/config.html to ...type="password"... instead of "text"

<input id="pass" name="pass" type="text" size="30" value="<?php echo $config->pass?>" />