chore: ignore empty key

This commit is contained in:
DarkSky
2025-11-19 13:46:11 +08:00
parent 221c493c56
commit 33a014977a

View File

@@ -149,7 +149,7 @@ export class LicenseController {
throw new LicenseNotFound();
}
if (license.validateKey && license.validateKey !== revalidateKey) {
if (!license.validateKey || license.validateKey !== revalidateKey) {
throw new InvalidLicenseToActivate({
reason: 'Invalid validate key',
});