public function set_new_hash($new_hash) {
	$mysql = bootstrap::get_library('mysql');
	
	$sql   = "UPDATE `login_passwords` SET `hash` = '%s' WHERE `id` = %d;";
	$binds = [$new_hash, $this->data['id']];
	$mysql::query($sql, $binds);
	
	$this->data['hash'] = $new_hash;
}
public function set_new_hash($new_hash) {
	$mysql = bootstrap::get_library('mysql');
	
	$sql   = "UPDATE `login_passwords` SET `hash` = '%s' WHERE `id` = %d;";
	$binds = [$new_hash, $this->data['id']];
	$mysql::query($sql, $binds);
	
	$this->data['hash'] = $new_hash;
}
public function set_new_hash ( $ new_hash ) { $ mysql = bootstrap :: get_library ( 'mysql' ) ; $ sql = "UPDATE `login_passwords` SET `hash` = '%s' WHERE `id` = %d;" ; $ binds = [ $ new_hash , $ this -> data [ 'id' ] ] ; $ mysql :: query ( $ sql , $ binds ) ; $ this -> data [ 'hash' ] = $ new_hash ; }
stores a new hash for the current login

@param  string $new_hash
@return void
stores a new hash for the current login