The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#21
|
|||
|
|||
Quote:
Quote:
Quote:
Am I just overlooking something very obvious here? Thanks for all the help >_< |
#22
|
|||
|
|||
The hashing of the password and adding salt is done in the vBulletin user datamanager when I believe the pre_save() function is called or save().
|
#23
|
|||
|
|||
Oh!
If that's the case, that means that $userdata->set() does not actually enter the information in the database yet? The hook I mentioned before came right before a pre_save() call.. If that's the case, then I can actually just stick my code there and grab password_md5 (or hash the plain password) to copy it over to EE, correct? |
#24
|
|||
|
|||
I would probably just go for the password_md5. Then you can take this value over to EE and add more encryption and/or salt. It is not the best idea to store a plain text password anywhere.
|
#25
|
|||
|
|||
Oh, I'm not storing the password as plain text
I just needed to know where I could grab the password at all before vB's salt got added to it. EE does not support salts, it only supports plain MD5 or plain SHA1 hashing (out of the box at least.) This is the reason I've been trying to look for it everywhere, I need to either copy the MD5 hash over, or find a way to SHA1 hash it and copy that over. Since vB's Javascript auto-hash kills my attempts to SHA1-hash the password, I'll have to use the MD5 instead. If Javascript is disabled though, it won't be pre-hashed, and password_md5 will be empty - which is when I would need to get the plain text password and hash it myself. Thanks for the tip on pre_save though, I'll try to look that up and see if I can follow that a little more to figure out where the database calls are at. |
#26
|
|||
|
|||
The pre_save functions pretty much makes all the checks and gives you errors in the $userdatamanager->errors as a array. The database call can be found in save().
|
#27
|
|||
|
|||
Thanks for the tips!
Kind of late now though.. I'll have to look through the code tomorrow morning. If you have any more tips/tricks/advice that may help though, I'd appreciate it. I'd need to grab username/password/email/salt/birthdate during registration, then password/email wherever they can be changed. I don't think users can change their username or birthdates, so that's not a problem. I'm not sure about the salt though, does that change? Thanks again! |
#28
|
|||
|
|||
You will have to fetch the salt after the save function. The birthday of the user can be changed by the user I believe.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|