Related to: https://github.com/fleetdm/fleet/issues/33798 Changes: - Updated the redirects for logged-in users for the /login and /register pages to take users to the /try page. - Updated the primary button color in the query generator and the landing page generator stylesheet template
37 lines
431 B
JavaScript
Vendored
37 lines
431 B
JavaScript
Vendored
module.exports = {
|
|
|
|
|
|
friendlyName: 'View signup',
|
|
|
|
|
|
description: 'Display "Signup" page.',
|
|
|
|
inputs: {},
|
|
|
|
exits: {
|
|
|
|
success: {
|
|
viewTemplatePath: 'pages/entrance/signup',
|
|
},
|
|
|
|
redirect: {
|
|
description: 'The requesting user is already logged in.',
|
|
responseType: 'redirect'
|
|
}
|
|
|
|
},
|
|
|
|
|
|
fn: async function () {
|
|
|
|
if (this.req.me) {
|
|
throw {redirect: '/try'};
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
};
|