Log in

View Full Version : Passwords Question


Sharif
12-11-2005, 06:27 PM
When a user registers to the forums,

I know that the password field in the "_user" table gets the md5 hash. But do any other tables get it too?

Reason I ask is because I am trying to merge my forum registration and site registration in one. I got most of it down except that say the user's password is "abcd", and I try to login with that password in VB, I get a "wrong pass" notice, but if I change the pass to "abcd" through the vb admin panel, it lets me log in.

Where else do I have to insert the password to?

I figured it out!

Vbulletin actually does this during registration:
- md5 password
- add salt field value to password
- md5(md5(password) . salt)

Thanks guys.

t0ny
12-11-2005, 07:32 PM
Looks like most people have to solve these issues themselves or give up trying to get help in this forum....

Sharif
12-11-2005, 07:33 PM
I guess I got lucky. It's hell trying to read the VB source code but thank moses I figured it out.

t0ny
12-11-2005, 07:48 PM
I am doing a similar thing to you, but worse I am integrating with ASP.
I am trying to set a session variable just before the login redirect.. :disappointed:

merk
12-11-2005, 08:59 PM
Reason I ask is because I am trying to merge my forum registration and site registration in one.

You can use the user datamanager and it will deal with passwords by itself. (transparent to you)

t0ny
12-11-2005, 09:12 PM
datamanager?

merk
12-11-2005, 09:32 PM
includes/class_dm_user.php

monotreme
01-11-2006, 06:06 PM
haha yeah. but you have to figure THAT out first. :)