MyBB Community Forums

Full Version: allow bbPress1.0 passwords to work post-merge
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This fix will allow users' bbPress 1.0 passwords to work in MyBB 1.6 post-merge.
  1. Download 'class.passwordhash.php', and put it in '/inc/plugins/bbPress/'.
  2. Edit 'loginconvert.php' as shown below.
Change this
// TODO: Finish this!
function authenticate_bbpress($password)
{
	return false;
}
to this
// Authentication for bbPress 1.0
function authenticate_bbpress($password)
{
	require_once('bbPress/' . 'class.passwordhash.php');
	$wp_hasher = new PasswordHash(8, TRUE);
	if ($wp_hasher->CheckPassword($password, $this->user['passwordconvert']))
	{
		return true;
	}
	return false;
}
Officially we wouldn't include a file from the other board, but would instead include the needed code from that board. Thanks for reminding me that this has to be done yet though. Put on tracker as [Issue #1715]
It should be fixed now in the svn, if you can test it I would appreciate it.