Authentication Integration with Wordpress |
[eluser]krif[/eluser]
Hi, Did someone here try to authenticate against the Wordpress wp_users table or built in Wordpress functions yet? My CI application is loosely integrated with my Wordpress installation and I would like to save some time by using the WP user registration and managing functionalities with it. In the controller constructors, I'd probably refer to get_currentuserinfo to check whether a user has the right permission and redirect if not. Will try that here but would be happy for any pointers to the right direction if anyone has done that before
[eluser]Cro_Crx[/eluser]
Um... yeah it's easy, WP uses phpass. You can create a simple library for CI which just includes the phpass files ==> http://www.openwall.com/phpass/
[eluser]Cro_Crx[/eluser]
Let me know if you get stuck at all. I wrote a very short library which just includes the phpass files which works well. I would post it now, but it's at work.
[eluser]btray77[/eluser]
I would like to see the library if you get a chance to post it. -Brad
[eluser]Vik[/eluser]
IIRC, you can use one Wordpress name and password to post comments on any Wordpress site. Does anyone have any code that authenticates a Wordpress name and password? |
Welcome Guest, Not a member yet? Register Sign In |