Project

General

Profile

« Previous | Next » 

Revision 33386b07

Added by Daniel Vinakovsky over 9 years ago

more style fixes. unset old fields

View differences:

src/etc/inc/auth.inc
608 608

  
609 609
function local_user_set_password(&$user, $password) {
610 610

  
611
	$user['password'] = "REMOVED";
612
	$user['md5-hash'] = "REMOVED";
613
	$user['bcrypt-hash'] = password_hash($password,PASSWORD_BCRYPT);
611
	unset($user['password']);
612
	unset($user['md5-hash']);
613
	$user['bcrypt-hash'] = password_hash($password, PASSWORD_BCRYPT);
614 614

  
615 615
	// Maintain compatibility with FreeBSD
616 616
	// https://reviews.freebsd.org/D2742
......
620 620
		$user['bcrypt-hash'][2] = "b";
621 621
	}
622 622

  
623

  
624 623
	// Converts ascii to unicode.
625 624
	$astr = (string) $password;
626 625
	$ustr = '';

Also available in: Unified diff