2012-06-18 34 views
0

我一直在寻找过去几个小时内如何在自定义网站上使用phpBB登录脚本。我想我只是没有寻找正确的东西。phpBB自定义网站上的密码验证

前段时间,我创建了一个phpBB站点,并有超过900个成员通过phpBB注册。我目前正在翻译此网站,并重新进行用户注册以及我拥有的所有其他自定义代码。

我的问题是,我希望用户能像平常一样登录,但我想将它们输入到我的新数据库中,这样一切都可以平稳运行。我主要是需要他们的用户名,密码和旧编号,但我不知道如何使用phpBB的密码认证或在哪里可以找到它

声明需要看起来像这样:

On Login, grab username and password variables: 
    if the username is not in MY database, check phpBB database. 
     If the username is in phpBB database, check to see if the password is correct **(This is the part I don't know how to do)** 
      If the password is correct, input the username, user ID and the password (encrypted my way) into MY database 
       Login 
      If the password is incorrect - error 
     if the username is NOT in phpBB database - continue 
    if the username is not in MY database - input username and encrypted pass into my DB 
     login 

我在哪里可以找到一个脚本来验证phpBB用户的密码?我不在乎脚本如何完成,我知道这是一个秘密,我只需要能够验证密码,以便我可以确保它是相同的用户

我有权访问phpBB数据库,我只是需要一种方法来验证自己的密码

回答

0

我宁愿删除quesion,但这里的答案:

入住这里:http://sunnyis.me/blog/secure-passwords/

,当你下载PasswordHash.php,改变所有的$的P $到$ H $。它会工作。奇怪它如何创建一个密码,每次创建时都不一样。但是它的CHECK部分确保它正确地检查它,无论它创建了什么样的散列。