Shinyshell Community Forums > Coding > MyBB's MySQL |
||||||
Sign Up | Member List | New Posts | Help |
[1]
October 16 02009, 19:52 GMT | ||||
Peter* A Pythonic One Location: US Post count: 99 |
I'm working on a users system in Python for a site with MyBB in use. I know how to make my own users system , but I don't understand how these passwords are encrypted, or how the loginkey field & cookie works. I really just want to integrate these two things for experimental purposes. ^_~
|
October 17 02009, 16:31 GMT | ||||
Faltzer Member Location: Glendale, New York Post count: 38 |
import os The cookie you are looking for here is usually the sessionid one, as it gives you all you need to set-up user integration. With that in hand, query the database's session table where it matches the sessionid. Then you grab the user's information based on the userid that is in that same row you queried. I believe this can be done in one query with JOINs, but there you have it. This can all be done easily if you were using a web framework. Pylons has request.cookie, so you don't have to do any of that manually. ______________________________ FHQ |
[1]
Forum Information |
||||||||||
|