Added license info to server root page
This commit is contained in:
@@ -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>";
|
||||
|
||||
@@ -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)}");
|
||||
|
||||
Reference in New Issue
Block a user