chore: ignore empty key
This commit is contained in:
@@ -149,7 +149,7 @@ export class LicenseController {
|
|||||||
throw new LicenseNotFound();
|
throw new LicenseNotFound();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (license.validateKey && license.validateKey !== revalidateKey) {
|
if (!license.validateKey || license.validateKey !== revalidateKey) {
|
||||||
throw new InvalidLicenseToActivate({
|
throw new InvalidLicenseToActivate({
|
||||||
reason: 'Invalid validate key',
|
reason: 'Invalid validate key',
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user