且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

自定义PHP函数以验证Joomla中的正确密码

更新时间:2022-04-25 10:08:50

一种方法是直接查询Joomla数据库,以获取用户的密码(加盐和哈希值),然后进行比较.我认为以下查询应对此有效,基于我从一些Google搜索中看到的内容.我已经在Wordpress中完成了此操作,所以我假设Joomla会与此类似.

One way would be to query the Joomla database directly to get a user's (salted and hashed) password, then compare. I think the below query should work for that, based on what I have seen from a few google searches. I have done this in Wordpress, so I'm assuming Joomla would be similar.

select 'password' from `jos_users` WHERE `username` = "Bob";