mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Website: add default organization to Premium trial license keys. (#22192)
Closes: #22190 Changes: - updated `save-questionnaire-progress` to set a default value for the `organization` value of generated license keys (if a user does not have an organization set)
This commit is contained in:
parent
ddbdce4ab9
commit
1f1bc9c949
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ module.exports = {
|
|||
let thirtyDaysFromNowAt = Date.now() + (1000 * 60 * 60 * 24 * 30);
|
||||
let trialLicenseKeyForThisUser = await sails.helpers.createLicenseKey.with({
|
||||
numberOfHosts: 10,
|
||||
organization: this.req.me.organization,
|
||||
organization: this.req.me.organization ? this.req.me.organization : 'Fleet Premium trial',
|
||||
expiresAt: thirtyDaysFromNowAt,
|
||||
});
|
||||
// Save the trial license key to the DB record for this user.
|
||||
|
|
|
|||
Loading…
Reference in a new issue