I have writing some changes at index.php and index_form.php to login in my mambo server. I recive from mambo the username and md5 password, etc.., then I test if this user is in moodle database, if not create, then login, else login.
The question is that I can't login a user created from this script in moodle, I also tried to log it mannualy in the default login screen, but the password is always wrong.
The insertion script is inserting the password this way: hash_internal_user_password($_SESSION['PHP_AUTH_PW'])
Then I'm trying to login it this way: location="https://server/moodle/login/index.php?username='. $_SESSION['PHP_AUTH_USER'] .'&password='. $_SESSION['PHP_AUTH_PW']
What I'm doing wrong?