forgotForm = (req) =>
  new Form({
    blurb: req.__(
      "Enter your email address below and we'll send you a link to reset your password."
    ),
    fields: [
      new Field({
        label: req.__("E-mail"),
        name: "email",
        type: "String",
        attributes: {
          input_type: "email",
        },
        // fixed correct size of email is 254 https://stackoverflow.com/questions/386294/what-is-the-maximum-length-of-a-valid-email-address
        validator: (s) => s.length < 255,
      }),
    ],
    action: "/auth/forgot",
    submitLabel: req.__("Reset password"),
  })
Forgot Form
@param {object} req
@returns {Form}