This commit is contained in:
@@ -59,13 +59,9 @@ namespace AyaNova.Biz
|
||||
//Stealthy check of user count exceeded
|
||||
if (await UserBiz.ActiveTechUserCountAsync() > AyaNova.Core.License.ActiveKey.ActiveTechsCount)
|
||||
{
|
||||
HERE
|
||||
//WARNING: DO not change the text of this message without also
|
||||
//updating the authcontroller ReturnUserCredsOnSuccessfulAuthentication licenselockout check code
|
||||
//it must match
|
||||
var msg = $"E1020 - Active count exceeded capacity";
|
||||
AyaNova.Util.ServiceProviderProvider.ServerState.SetSystemLock(msg);
|
||||
log.LogCritical(msg);
|
||||
//Warning: magic string, do not change this, triggers special login procedures to fix license issue
|
||||
AyaNova.Util.ServiceProviderProvider.ServerState.SetSystemLock(AyaNova.Core.License.SERVER_STATE_LOCKOUT_DUE_TO_LICENSE_EXCEEDED_CAPACITY_ERROR);
|
||||
log.LogCritical(AyaNova.Core.License.SERVER_STATE_LOCKOUT_DUE_TO_LICENSE_EXCEEDED_CAPACITY_ERROR);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user