Pages

Showing posts with label moodle. Show all posts
Showing posts with label moodle. Show all posts

Monday, March 7, 2011

Generate Moodle password

For generating a moodle password , first of all include the the configuration page then use the script given below
$password = “new password”;
$moodle_password = md5($password.$CFG->passwordsaltmain);
$password is the actual password and the passwordsaltmain is a hash key generated at moodle installation.