The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Custom UserCP with password change
Hey,
I'm currently in the middle of creating a custom site that integrates with vB forums (such as single login between the 2, sharing data, pulling threads for a news category etc). So far so good. Now, i'm trying to create my own UserCP on the custom side with practically all the same main features as the vB ones provides - signature, email & password change etc. I'm now trying to recreate the password change but having difficulties on how to do this. I assume there must be some file or function already in vB that i could use to do such a thing. I've had a glance around the login.php and the profile.php section for email & password - but not being a very skilled PHP coder i am a bit stumped on where to go. But yeah, surely the md5 & salt function/section is already in vB somewhere that i could just integrate it with the form? The current password would just hash it and check against the one currently in the password field.. and if they match, then hash the new inputted password and update the table - or is it done differently? Anyone? There must be a simple way to do this.. i assume its all in profile.php under the editpassword section but i cant change the code to work for me. Anyone know a simple to to hash a password and check it against the db? Then to do the proper hash sequence and update the user with the new password? |
#2
|
||||
|
||||
Fetch their user from the user table. Then hash passwords like so (you'll find the salt in the user table):
PHP Code:
|
#3
|
|||
|
|||
Actually you should be using the javascript file that hashes the password on the client side.
|
#4
|
|||
|
|||
sir i want to help you if you don't mind, i need a option from there we can change status ascending or descending. Please let me know how can i will take this option from admincp?
waiting for your kind reply. you can chat me by msn messenger with this email id "*** Removed ***" |
#5
|
|||
|
|||
Quote:
|
#6
|
|||
|
|||
So the process for this is:
if ( client has javascript ) { use client-side hashing } else { use server-side hasing } Is there an implementation of this pre-written in a function, that I could lift? |
#7
|
|||
|
|||
Yes there are, check any of the standard password change pages or the login page.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|