![]() |
Login and Authentication
Basicly, I'm trying to have use my own login form to login to vbulletin, the only problem is I can't retrieve the password from the database because of different levels of encryption.. How I do decrypt the password?
This is my current string: PHP Code:
OR How do I edit the login page so I can make it look similar to this: http://snappednet.com/login.jpg |
I believe you would want to compare the encrypted password from the database to:
Code:
md5(md5($_POST['password']) . salt) You can look at function verify_authentication() in includes/functions_login.php if you want to see how vb checks the password. |
You have an extra bracket in there, or a bracket is missing?
Would it just be easier to use the functions_login.php to verify the login? If so, how can I do that? |
Sorry about the extra bracket, I fixed it above.
The form for the existing login/password field in the navbar looks like this: Code:
<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=415"></script> So if you model your form after that one (i.e. use the same <form> and <input> tags but change them to display like you want), I think it should work the same and the built-in login. Note that the above was copied from the HTML page source and not the template, because I wasn't sure if you were using templates for your new login page. If you are, then it's better to go to the navbar template and find the template code for the above. In the above code I removed the "securitytoken" hidden field because there's no way to set that in a static page, but if you use templates you should include it. |
All times are GMT. The time now is 01:12 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|