mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 00:49:03 +00:00
Changes: - Moved the logic for redirecting users to the license dispenser after they login/sign up into the page scripts for the login and register pages. - Updated error messages in the create lead helper
36 lines
433 B
JavaScript
Vendored
36 lines
433 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: '/start'};
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
};
|