From 3879e9933b5e05fa77021949295117da0ba18eb2 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 11 Nov 2021 00:07:55 +0000 Subject: [PATCH] Added license info to server root page --- server/AyaNova/Controllers/ApiRootController.cs | 3 ++- server/AyaNova/util/License.cs | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/server/AyaNova/Controllers/ApiRootController.cs b/server/AyaNova/Controllers/ApiRootController.cs index e3411b95..b8693afa 100644 --- a/server/AyaNova/Controllers/ApiRootController.cs +++ b/server/AyaNova/Controllers/ApiRootController.cs @@ -91,11 +91,12 @@ namespace AyaNova.Api.Controllers {errorBlock}
-

{AyaNovaVersion.FullNameAndVersion}

+

{AyaNovaVersion.FullNameAndVersion}

AyaNova App

User and technical guide

Contact technical support

API explorer for developers

+
{AyaNova.Core.License.LicenseInfo}
"; diff --git a/server/AyaNova/util/License.cs b/server/AyaNova/util/License.cs index 88514b19..f4d82427 100644 --- a/server/AyaNova/util/License.cs +++ b/server/AyaNova/util/License.cs @@ -319,8 +319,8 @@ namespace AyaNova.Core sb.AppendLine("TRIAL LICENSE FOR EVALUATION PURPOSES ONLY"); sb.AppendLine($"Registered to: {ActiveKey.RegisteredTo}"); - sb.AppendLine($"Key ID: {ActiveKey.Id}"); - sb.AppendLine($"Server DB ID: {ServerDbId}"); + //sb.AppendLine($"Key ID: {ActiveKey.Id}"); + //sb.AppendLine($"Server DB ID: {ServerDbId}"); sb.AppendLine($"Type: {(ActiveKey.RentalLicense ? "Service" : "Perpetual")}"); if (ActiveKey.WillExpire) sb.AppendLine($"License expires: {DateUtil.ServerDateTimeString(ActiveKey.LicenseExpiration)}");