2012-04-20, 05:47 AM
I have a script i am running from Wordpress, upon completion of a form on Wordpress i have it enter data into the mybb database which creates a forum posting(in threads and posts tables). This works fine and everything but i am also wondering if i could go about using this same form to act as a new user registration, outside of the existing one.
The only thing i am unsure of is the 'password' 'salt' and 'loginkey', and how they are generated. im assuming some md5 and so on. was wondering if this is documented any where so i can make a custom user registration form, or perhaps answered in another thread(ive been searching a bit already with no luck). Looked around the wiki, but could only find info on the database/table itself, and not the generation methods.
I know i could poke around the code for a while and eventually find it, just looking for a short cut around that
Ok, so far i got this much
the 'salt' field is a random 8 character string generated at the time of user creation
the 'password' field is a md5 of the combination of an md5 of the password and a md5 of the salt
so down to needing the login_key
...
k guess just ignore the entire post, found the login_key, being the same as the salt only 50 characters instead of 8
The only thing i am unsure of is the 'password' 'salt' and 'loginkey', and how they are generated. im assuming some md5 and so on. was wondering if this is documented any where so i can make a custom user registration form, or perhaps answered in another thread(ive been searching a bit already with no luck). Looked around the wiki, but could only find info on the database/table itself, and not the generation methods.
I know i could poke around the code for a while and eventually find it, just looking for a short cut around that
Ok, so far i got this much
the 'salt' field is a random 8 character string generated at the time of user creation
the 'password' field is a md5 of the combination of an md5 of the password and a md5 of the salt
so down to needing the login_key
...
k guess just ignore the entire post, found the login_key, being the same as the salt only 50 characters instead of 8