mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 01:18:42 +00:00
Increase Fleet Sandbox time to five days (#9251)
Changes: - Updated the expiration timestamp of new Fleet Sandbox instances to be five days from when a user signs up. (Previously 24 hours)
This commit is contained in:
parent
5919931a4c
commit
b5d2d0c4b4
1 changed files with 2 additions and 1 deletions
3
website/api/controllers/entrance/signup.js
vendored
3
website/api/controllers/entrance/signup.js
vendored
|
|
@ -102,8 +102,9 @@ the account verification message.)`,
|
|||
// Provisioning a Fleet sandbox instance for the new user. Note: Because this is the only place where we provision Sandbox instances, We'll provision a Sandbox instance BEFORE
|
||||
// creating the new User record. This way, if this fails, we won't save the new record to the database, and the user will see an error on the signup form asking them to try again.
|
||||
|
||||
const FIVE_DAYS_IN_MS = (5*24*60*60*1000);
|
||||
// Creating an expiration JS timestamp for the Fleet sandbox instance. NOTE: We send this value to the cloud provisioner API as an ISO 8601 string.
|
||||
let fleetSandboxExpiresAt = Date.now() + (24*60*60*1000);
|
||||
let fleetSandboxExpiresAt = Date.now() + FIVE_DAYS_IN_MS;
|
||||
|
||||
// Creating a fleetSandboxDemoKey, this will be used for the user's password when we log them into their Sandbox instance.
|
||||
let fleetSandboxDemoKey = await sails.helpers.strings.uuid();
|
||||
|
|
|
|||
Loading…
Reference in a new issue