Authenticate Joomla User Credentials Programmatically
Sometimes we need to authenticate Joomla user credentials inside a component, module or plugin. The obvious way is querying Joomla user table in the database though we need to hash the password with md5. But alternatively, there is more efficient way to get it done via Joomla API. Here is the code snippet I’m using.
I think the code is self-explainable. Apparently Joomla API functions do all dirty works for us.