This commit is contained in:
@@ -11,12 +11,9 @@ using Microsoft.Extensions.Logging;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
//JSON KEY
|
||||
using Newtonsoft.Json;
|
||||
using Org.BouncyCastle.Security;
|
||||
using Org.BouncyCastle.Crypto;
|
||||
using Org.BouncyCastle.OpenSsl;
|
||||
//using System.Security.Cryptography;
|
||||
//using Microsoft.AspNetCore.Cryptography.KeyDerivation;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -522,7 +519,7 @@ namespace AyaNova.Core
|
||||
}
|
||||
|
||||
//Can't install a trial into a non-empty db
|
||||
if (ParsedNewKey.TrialLicense && !DbUtil.DBIsEmptyAsync(ct, log))
|
||||
if (ParsedNewKey.TrialLicense && ! DbUtil.DBIsEmptyAsync(ct, log))
|
||||
{
|
||||
throw new ApplicationException("E1020 - Can't install a trial key into a non empty AyaNova database. Erase the database first.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user