original_string: 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;
  }
code: 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;
  }
code_tokens: 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 ; }
docstring: stores a new hash for the current login
  
  @param  string $new_hash
  @return void
docstring_tokens: stores a new hash for the current login