[Mediawiki-l] help comparing password to invisionboard hashed

Bass, Joshua L joshua.l.bass at lmco.com
Sun Sep 11 13:50:47 UTC 2005


I need this part of the code changed:

	/**
	 * Check if a username+password pair is a valid login.
	 */
	function authenticate( $username, $password ) {
		$dbr =& $this->getAuthPressDB();

		$res =
$dbr->selectRow($this->getAuthPressUserTableName(),
				       "password",
	
"name=".$dbr->addQuotes($username),
				       "AuthPress::authenticate" );

		if( $res && ( $res->passwd == MD5( $password ))) {
			return true;
		} else {
			return false;
		}



More information about the MediaWiki-l mailing list