Joomla API

debonair

Well-Known Member
Joined
Sep 10, 2008
Messages
228
I am coding a website in codeigniter that reads information from a database used by a joomla website and am struggling with the users table, in particular the password field. I am writing a login script.

I would like to expose the joomla site as a webservice and not have to deal with the database directly. does anyone know a way I could do this? a component/plugin perhaps?

or alternatively, What kind of password encryption used in Joomla 1.5? whats before and after the colon?
 

guest2013-1

guest
Joined
Aug 22, 2003
Messages
19,800
http://forum.joomla.org/viewtopic.php?p=1368032

That should give you a good start. It discusses a few topics, one of which is the type of encryption used

Apparently the part after the colon is the salt used

So all you need to do is append the salt to the current password entered, and MD5 it to get the hash (which is the part infront of the colon)
 

guest2013-1

guest
Joined
Aug 22, 2003
Messages
19,800
Oh and that was my first hit on google when I searched for: "how to authenticate to joomla database using my own code"
 

debonair

Well-Known Member
Joined
Sep 10, 2008
Messages
228
Thanks a lot, will check it out, I was having trouble phrasing what exactly i am looking for.
 

guest2013-1

guest
Joined
Aug 22, 2003
Messages
19,800
Thanks a lot, will check it out, I was having trouble phrasing what exactly i am looking for.

sometimes just typing out the question as if you'd ask anyone is best... however, keep it simple stupid.

telling a search engine what you want to use to overcome the problem and getting to the root of the problem to search for an effective solution is 2 different things.

when my juniors come to me saying "this is what I'm doing" I tell them to STFU and tell me WHAT they WANT to do.

"I want to be able to authenticate a user using Joomla's database but my own code"

Instead of

"I want to expose Joomla! using a web service and not have to deal with the database directly"

The latter is your solution to the problem, so by searching for something like that won't get you anywhere :D
 

James

Expert Member
Joined
May 26, 2004
Messages
2,617
sometimes just typing out the question as if you'd ask anyone is best... however, keep it simple stupid.

telling a search engine what you want to use to overcome the problem and getting to the root of the problem to search for an effective solution is 2 different things.

when my juniors come to me saying "this is what I'm doing" I tell them to STFU and tell me WHAT they WANT to do.

"I want to be able to authenticate a user using Joomla's database but my own code"

Instead of

"I want to expose Joomla! using a web service and not have to deal with the database directly"

The latter is your solution to the problem, so by searching for something like that won't get you anywhere :D

And this concludes, How to speak Google 101 :D
 

debonair

Well-Known Member
Joined
Sep 10, 2008
Messages
228
Got everything to work now. Thank you for pointing me in the right direction!
 

semiautomatix

Honorary Master
Joined
Nov 9, 2005
Messages
11,914
And this concludes, How to speak Google 101 :D

Hehehe, even with all my experience its sometimes difficult to remember. But after refining and removing words 63 times you finally get to the best solution for the problem.
 

debonair

Well-Known Member
Joined
Sep 10, 2008
Messages
228
Well I figured it all out, thanks a lot guys got registration and login working
 

ACloete

Well-Known Member
Joined
Nov 15, 2009
Messages
153
I would like to know more about using Joomla as well. Is it difficult? What are the experiences - Any good recommendations?
 

guest2013-1

guest
Joined
Aug 22, 2003
Messages
19,800
I'd stick with Wordpress. But that's just me.

If you had a question, please start a new topic. This one wasn't specific to your question really ;)
 
Top