mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
feat(licenses): enhance license validation process
- Updated the validateLicense function to accept server IP for improved validation. - Modified user API to utilize the new validateLicense signature. - Added useEffect in EnablePaidFeatures component to set license key based on user data. - Improved error handling and user feedback during license validation.
This commit is contained in:
@@ -56,6 +56,8 @@ router.get("/health", async (c) => {
|
||||
router.post("/validate", zValidator("json", validateSchema), async (c) => {
|
||||
const { licenseKey, serverIp } = c.req.valid("json");
|
||||
|
||||
console.log("Validating license", licenseKey, serverIp);
|
||||
|
||||
try {
|
||||
const result = await validateLicense(licenseKey, serverIp);
|
||||
return c.json(result);
|
||||
|
||||
Reference in New Issue
Block a user