Skip to content

Commit

Permalink
Show license key information on the legal page
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Oct 17, 2023
1 parent 67613a3 commit 3739549
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,8 @@ MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEV3QUiYsp13nD9suD1/ZkEXnuMoSg
key: rawLicenseData.k.toString('hex'),
licensedTo: rawLicenseData.n,
hostname: rawLicenseData.h,
created: new Date(rawLicenseData.c).toISOString()
created: new Date(rawLicenseData.c).toISOString(),
trial: rawLicenseData.t
};

if (rawLicenseData.e) {
Expand Down
19 changes: 18 additions & 1 deletion views/legal.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,28 @@
<a href="mailto:[email protected]">[email protected]</a><br>
<a href="https://postalsys.com/">https://postalsys.com</a>
</address>



</div>

<ul class="list-group list-group-flush">


<ul class="list-group list-group-flush">

<li class="list-group-item">
<strong>
{{#if licenseInfo.details.key}}
{{#if licenseInfo.details.trial}}
This copy of EmailEngine is running on a trial license.
{{else}}
This copy of EmailEngine is licensed to <em>{{licenseInfo.details.licensedTo}}</em>.
{{/if}}
{{else}}
License key not set for this copy of EmailEngine.
{{/if}}
</strong>
</li>

<li class="list-group-item">
<a href="/license.html" target="_blank">
Expand Down

0 comments on commit 3739549

Please sign in to comment.