View previous topic :: View next topic |
Author |
Message |
manlyboy
Joined: 24 Apr 2012 Posts: 30
|
Posted: Sun May 20, 2018 12:36 am Post subject: Updating current licence's Application Data |
|
|
When I generate a new license I use the following code in my customGenerator:
Code: |
string auData = string.Format("{0}|{1}|{2:s}|{3}|{4:s}|{5}",
form.MaxCourts,
LicenseUtilities.Checksum(form.LicensedTo),
form.DOP,
yn,
form.ExpiresOn,
form.LicencedVersion);
data.AuthenticationData = auData;
|
What I would like to do is alter one of those paramaters (form.ExpiresOn) as I use that date to determine when their support expires. At present, I issue a new key that the end user installs.
How do I go about this? |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Tue May 22, 2018 11:04 am Post subject: |
|
|
If you return true from the ICustomGenerator.SupportsUpdateAuthenticationData method then License Tracker will call your ICustomGenerator.UpdateAuthenticationData method when the user selects a key in License Tracker and clicks on the Authentication > Set Authentication Data menu. Your UpdateAuthenticationData method can unpack the existing AuthenticationData (if you want) and display your form to allow the user to update the expiry date. _________________ Infralution Support |
|
Back to top |
|
|
manlyboy
Joined: 24 Apr 2012 Posts: 30
|
Posted: Thu May 24, 2018 1:41 am Post subject: |
|
|
Thanks ... |
|
Back to top |
|
|
|