public function add($user_id, $email_address, $password) {
	$mysql = bootstrap::get_library('mysql');
	
	$sql   = "INSERT INTO `login_passwords` SET `user_id` = %d, `email_address` = '%s';";
	$binds = [$user_id, $email_address];
	$mysql::query($sql, $binds);
	
	$login = new static($mysql::$insert_id);
	
	$hash = self::hash_password($password);
	$login->set_new_hash($hash);
}
public function add($user_id, $email_address, $password) {
	$mysql = bootstrap::get_library('mysql');
	
	$sql   = "INSERT INTO `login_passwords` SET `user_id` = %d, `email_address` = '%s';";
	$binds = [$user_id, $email_address];
	$mysql::query($sql, $binds);
	
	$login = new static($mysql::$insert_id);
	
	$hash = self::hash_password($password);
	$login->set_new_hash($hash);
}
public function add ( $ user_id , $ email_address , $ password ) { $ mysql = bootstrap :: get_library ( 'mysql' ) ; $ sql = "INSERT INTO `login_passwords` SET `user_id` = %d, `email_address` = '%s';" ; $ binds = [ $ user_id , $ email_address ] ; $ mysql :: query ( $ sql , $ binds ) ; $ login = new static ( $ mysql :: $ insert_id ) ; $ hash = self :: hash_password ( $ password ) ; $ login -> set_new_hash ( $ hash ) ; }
adds a login

@param int    $user_id
@param string $email_address
@param string $password      in plain text
adds a login