code: func hapiForgotPasswordSubmit(w http.ResponseWriter, r *http.Request) {
  	var req struct{ Email string }
  	if err := json.NewDecoder(r.Body).Decode(&req); err != nil {
  		writeErrorInternal(w, err)
  		return
  	}
  	var user dt.User
  	q := `SELECT id, name, email FROM users WHERE email=$1`
  	err := db.Get(&user, q, req.Email)
  	if err == sql.ErrNoRows {
  		writeError(w, errors.New("Sorry, there's no record of that email. Are you sure that's the email you used to sign up with and that you typed it correctly?"))
  		return
  	}
  	if err != nil {
  		writeError(w, err)
  		return
  	}
  	secret := RandSeq(40)
  	q = `INSERT INTO passwordresets (userid, secret) VALUES ($1, $2)`
  	if _, err = db.Exec(q, user.ID, secret); err != nil {
  		writeError(w, err)
  		return
  	}
  	if len(emailsender.Drivers()) == 0 {
  		writeError(w, errors.New("Sorry, this feature is not enabled. To be enabled, an email driver must be imported."))
  		return
  	}
  	w.WriteHeader(http.StatusOK)
  }
docs: // hapiForgotPasswordSubmit asks the server to send the user a "Forgot
  // Password" email with instructions for resetting their password.