12345678910111213141516171819202122232425262728293031323334353637 |
- module.exports = {
- friendlyName: 'View forgot password',
- description: 'Display "Forgot password" page.',
- exits: {
- success: {
- viewTemplatePath: 'pages/entrance/forgot-password',
- },
- redirect: {
- description: 'The requesting user is already logged in.',
- extendedDescription: 'Logged-in users should change their password in "Account settings."',
- responseType: 'redirect',
- }
- },
- fn: async function (inputs, exits) {
- if (this.req.me) {
- throw {redirect: '/'};
- }
- return exits.success();
- }
- };
|