some work on the license manager
This commit is contained in:
1 parent
af80c7d582
commit
4a15f1e351
9 files changed
+736
-624
No files matched your search
@@ -113,9 +113,9 @@ export default {
|
||||
* @param licenseId - The ID of the license to validate
|
||||
* @returns Promise<{ is_valid: boolean, is_signature_valid: boolean, is_expired: boolean } | null>
|
||||
*/
|
||||
async validateLicense(licenseId: number): Promise<{ is_valid: boolean, is_signature_valid: boolean, is_expired: boolean } | null> {
|
||||
async validateLicense(license: License): Promise<{ isValid: boolean, isSignatureValid: boolean, isExpired: boolean } | null> {
|
||||
try {
|
||||
const response = await axios.post('/api/licenses/validate', { license_id: licenseId });
|
||||
const response = await axios.post('/api/licenses/validate', { license });
|
||||
return response.data;
|
||||
} catch (error) {
|
||||
toast.error('Fehler beim Validieren der Lizenz', { description: (error as AxiosError).message });
|
||||
|
||||
Reference in new issue
Block a user