package handlers

import (
	
	
	
)

// Verify verifies credentials
func ( *fiber.Ctx) error {
	 := []string{"ip_address", "username", "password", "port", "key_type"}

	for ,  := range  {
		if len(.FormValue()) < 1 {
			return logger.FiberError(fiber.StatusBadRequest, +" parameter is missing")
		}
	}

	 := bridge.VerifyAuth(
		.FormValue("username"),
		.FormValue("password"),
		.FormValue("ip_address"),
		.FormValue("port"),
		.FormValue("key_type"),
	)

	if  {
		return .SendString("ok")
	}

	// TODO: change the way request handles on core
	return .Status(201).SendString("nok")
}