Added license info to server root page

This commit is contained in:
2021-11-11 00:07:55 +00:00
parent f946a472b1
commit 3879e9933b
2 changed files with 4 additions and 3 deletions

View File

@@ -91,11 +91,12 @@ namespace AyaNova.Api.Controllers
<body>
{errorBlock}
<div>
<h1>{AyaNovaVersion.FullNameAndVersion}</h1>
<h1>{AyaNovaVersion.FullNameAndVersion}</h1>
<h2><a href=""/"" target=""_blank"">AyaNova App</a></h2>
<h2><a href=""/docs"" target=""_blank"">User and technical guide</a></h2>
<h2><a href=""{SupportUrl()}"" target=""_blank"">Contact technical support</a></h2>
<h2><a href=""/api-docs"" target=""_blank"">API explorer for developers</a></h2>
<pre>{AyaNova.Core.License.LicenseInfo}</pre>
</div>
</body>
</html>";

View File

@@ -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)}");