Ok. I’m going absolutely nuts here because it seems the code is ignoring everything I am doing to it.
I managed to find out where in the code the update password function executes when a user changes their password in their own profile. I slipped in a snippet of code to transfer the password over to my other database. After a bit of syntax-correction, I got it working.
However, when I logged in on my administrator account and tried to override the password change, only EE’s DB got the updated password.
So quite obviously the admin page is pulling its password update function from somewhere else. I load up all the files and do some mass searching and come up with 4!! (FOUR) password update functions. Some referred to the other, so I narrowed it down to the one further down near the end of mod.member_settings.php and the one near the beginning of cp.myaccount.php.
mod.member_settings.php one did not work at all. I actually have no idea what it does. I hardcoded it to place ‘123456’ in the password field when it was executed, but when I updated my password, it managed to find the SHA1 hash anyway.
cp.myaccount.php showed a little bit of promise since the page itself gave me some syntax errors as soon as I placed some random code in it. However, I placed a line of code after what I believe is when the function updates the DB… and again, nothing.
I’m trying to match the username on my second DB with the username already in the $_POST[‘username’] field on the page, and set to update the password field with $data[‘password’] since at that point in the code, it’s already hashed and stored in that variable. It *should* work, but I’m obviously missing something..
Can anyone lend a hand?
Thanks again.
[Moderator Edit: Moved to How To forum]