fleet/website/api/controllers/entrance/view-signup.js
Eric cde4a61bd3
Website: requested changes from website review (#18923)
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
2024-05-10 16:33:45 -05:00

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;
}
};