auto license fetching now and generator more solid

This commit is contained in:
2020-06-15 19:26:29 +00:00
parent 69030bd767
commit 59f4c6a9d2
7 changed files with 38 additions and 18 deletions

View File

@@ -1,5 +1,3 @@
using System;
using Microsoft.Extensions.Logging;
using AyaNova.Biz;
namespace AyaNova.Api.ControllerHelpers
{
@@ -35,6 +33,7 @@ namespace AyaNova.Api.ControllerHelpers
public ApiServerState()
{
}
@@ -45,7 +44,7 @@ namespace AyaNova.Api.ControllerHelpers
//Only SuperUser account (id=1) can login or do anything, treats as if server was set to closed even if they change it to open
//only way to reset it is to fetch a valid license
//
var msg=$"{reason}\r\nOnly *the* SuperUser account can login to make changes";
var msg = $"{reason}\r\nOnly *the* SuperUser account can login to make changes";
SetState(ServerState.OpsOnly, msg);
SYSTEM_LOCK = true;
}