The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
External Site login from application (salt, MD5 issue)
Hi all,
I've been pulling my hair out trying to figure out what's wrong. I think my method is wrong. The code works fine with plain text passwords but I can't seem to figure out how to use salt! PHP Code:
|
#2
|
|||
|
|||
I don't see how you're getting the salt value, but maybe that's what you mean when you say you can't figure out how to use it.
I think I'd make a "check password" function where you pass it the username and password and it returns true or false. Maybe like: PHP Code:
(BTW, I haven't tried this at all). |
#3
|
|||
|
|||
Thanks for your help. I still can't seem to get it working! Not sure where I'm going wrong, I need it to echo Accept or Denied if the password is correct but I keep going wrong somewhere.
|
#4
|
|||
|
|||
It works for me, after fixing a couple of typos in the code I posted (I've fixed them above as well). I used code like this to test it:
PHP Code:
One thing: I don't know where your password is coming from, but I think the vb code runs the password through md5 in javascript before sending it, but also has to allow for browsers with javascript disabled. So when it checks the password, it checks both ways. I guess you could do the same thing by using this code: PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|