Skip to content

Commit 3093eab

Browse files
committed
Remove device usage license limit
1 parent c4b0945 commit 3093eab

3 files changed

Lines changed: 13 additions & 11 deletions

File tree

src/Core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function cmdPager(pager_variable, layoutParadigm = 'rows') {
103103

104104
/**
105105
* Validates stored license on startup without blocking initialization
106-
* If license is invalid or exceeds device limits, unlinks it and notifies user
106+
* If license is invalid, unlinks it and notifies user
107107
* @param {object} license - The stored license data
108108
*/
109109
function validateStoredLicense(license) {

src/payments/license.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Handles all Gumroad API interactions and license operations
33

44
const GUMROAD_PRODUCT_ID = WP_GUMROAD_PRODUCT_ID
5-
const MAX_USAGE_LIMIT = 2
5+
// const MAX_USAGE_LIMIT = 2 // Temporarily disabled - will re-add in future
66

77
/**
88
* Manually encodes form data for x-www-form-urlencoded requests
@@ -49,15 +49,15 @@ export function validateGumroadLicense(licenseKey, incrementUsage = false) {
4949
return { ok: false, error: 'License is no longer valid', isLicenseError: true }
5050
}
5151

52-
// Check usage limit (max 2 devices: work and personal)
53-
const currentUses = data.uses || 0
54-
if (currentUses >= MAX_USAGE_LIMIT) {
55-
return {
56-
ok: false,
57-
error: 'License limit reached. Maximum 2 devices allowed (work and personal). Unlink from another device first.',
58-
isLicenseError: true
59-
}
60-
}
52+
// Check usage limit (max 2 devices: work and personal) - TEMPORARILY DISABLED
53+
// const currentUses = data.uses || 0
54+
// if (currentUses >= MAX_USAGE_LIMIT) {
55+
// return {
56+
// ok: false,
57+
// error: 'License limit reached. Maximum 2 devices allowed (work and personal). Unlink from another device first.',
58+
// isLicenseError: true
59+
// }
60+
// }
6161

6262
return { ok: true, purchase: purchase, uses: data.uses }
6363
})

src/ui/views/license/LicenseView.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,12 @@ class LicenseView extends Element {
181181
<strong>Activated</strong><br/>
182182
${activatedDate}
183183
</div>
184+
<!-- Device usage display temporarily disabled
184185
<div class="license-detail">
185186
<strong>Device Usage</strong><br/>
186187
${this.data.licenseInfo.uses || 1}/2 devices
187188
</div>
189+
-->
188190
</div>
189191
190192
<button

0 commit comments

Comments
 (0)