Project

General

Profile

« Previous | Next » 

Revision 1932

Added by darkviper over 11 years ago

modified class Password for use with different hashing classes

View differences:

initialize.php
341 341
										 'WbOldStyle',
342 342
										 (DEBUG ? Translate::CACHE_DISABLED|Translate::KEEP_MISSING : 0)
343 343
										);
344
	$oPass = Password::getInstance();
344
	if(!class_exists('PasswordHash')) { include(WB_PATH.'/include/phpass/PasswordHash.php'); }
345

  
346
	$oPass = Password::getInstance(new PasswordHash(Password::CRYPT_LOOPS_DEFAULT, Password::HASH_TYPE_AUTO));
345 347
	if(defined('PASSWORD_CRYPT_LOOPS')) { $oPass->setIteration(PASSWORD_CRYPT_LOOPS); }
346
	if(defined('PASSWORD_HASH_TYPES'))  { $oPass->setIteration(PASSWORD_HASH_TYPES); }
348
	if(defined('PASSWORD_HASH_TYPES'))  { $oPass->setHashType(PASSWORD_HASH_TYPES); }
347 349
// *** END OF FILE ***********************************************************************
348 350
 

Also available in: Unified diff