Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. Log in to the Abiquo API Server as an administrator

  2. In the config folder, if there is no mail folder, create a mail folder and set the owner as the tomcat user

    Code Block
    /opt/abiquo/config/mail

  3. In the mail folder, create the following files

    1. Email file: 

      resetPasswordTemplate_en_US.mustache

      Code Block
      languagexml
      <p>Hi,</p>
      <p>We've received a request to reset the password associated with:</p>
      <p><strong>{{username}}</strong></p>
      <p>Please use the following link:</p>
      <p>{{link}}</p>
      <p>If you did not request the password reset, please ignore this email.</p>
      <p>Thank you,</p>
      <p>The Abiquo Team</p>

    2. Properties file:

      resetPassword_en_US.properties

      Code Block
      subject=Reset Your Abiquo Password

      1. You cannot set values of the username and link properties. If you set these values, the platform will overwrite them

        (warning) If you change the subject property, you must restart the Tomcat server to apply your changes

  4. Optionally, add custom variables and content

    1. In the email body, to add a custom variable, use double curly braces (also called double mustaches). For example

      Code Block
      <p>Please call your system Administrator on <strong>{{helpline}}</strong></p>

    2. Then in your properties file, set a value for your custom variable

      Code Block
      helpline=555 12345

      (tick) To return unescaped HTML as part of a template property, use the triple mustache, which is "{{{" and "}}}".
      The Mustache templating software that adds the property values will escape HTML variables in double mustaches by default.

  5. If your users have a different locale, such as when they use a language other than English, rename the file to change to the language code for the user locale 

    • For example, for "Spanish - Spain" change the en_US to es_ES.

    • The user locale is the UI language set when you create the user

  6. Change the owner of the files to the tomcat tomcat user