Pages

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.

1 comment:

  1. It was wondering if I could use this write-up on my other website, I will link it back to your website though.Great Thanks.
    php development melbourne | Laravel development

    ReplyDelete