The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How are passwords stored?
Hi, I am trying to add a user directly into the 'user' table - not using the vBulletin interface and need to know how the password is stored... I have tried to INSERT it as md5($password) but that will not validate... is there some other twist that vBulletin does before it stores the passwords using the GUI... ?
Thanks for any help. Chris Chaudruc |
#2
|
|||
|
|||
It double MD5's it and also adds salt (a random key per user per forum).
The best way to manually add a user is via the ACP as you can then add the user details in plain text and then vB does all the encryption for you. |
#3
|
|||
|
|||
Hi, thanks for your reply... I cannot use the ACP in this instance
So would I do this... to enter the password properly in the db. md5(md5($salt.$password)) ? Is it somewhere in the code? I have been all through register.php and cannot find how the password is treated before it is stored... any idea where I Could look? Thanks for your help |
#4
|
||||
|
||||
Passwords are: md5(md5('PlaintextPassword'), salt)
Try looking at includes/class_dm_user.php ... the datamanager will also do the work for you. |
#5
|
|||
|
|||
check in the includes folder, class_dm_user.php there is alot in there around line 69x to like 8xx ?
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|