Skip to main content
Skip table of contents

Add a Terms and Conditions Screen

It is possible to configure SuperWEB2 to display a terms and conditions screen during log in. Users will need to accept the terms and conditions in order to log in to SuperWEB2. For example:

SuperWEB2 terms and conditions screen containing sample text

To activate the terms and conditions screen, do the following:

Step 1 - Activate the Terms and Conditions Page

  1. Open <tomcat_home>\webapps\webapi\WEB-INF\classes\configuration.properties in a text editor.
  2. Locate the following line:

    CODE
    login.requireTerms=
  3. Set the property to true:

    CODE
    login.requireTerms=true
  4. Save your changes and restart SuperWEB2 or the Tomcat service.

Step 2 - Add your Terms and Conditions

The second step is to add the text of your terms and conditions. You can do this by editing <tomcat_home>\webapps\webapi\terms.html or replacing it with an HTML page containing your terms and conditions.

Only HTML body content is required in this file; your HTML page will be rendered inside the terms and conditions box during the login process.

Require Users to Accept a New Set of Terms and Conditions

Users only need to accept the terms and conditions once. Once a particular user has accepted the conditions, those terms will not be shown to that user again on subsequent logins.

In the case of guest users, their acceptance of the terms is stored in a cookie that expires when the browser closes. A guest user will therefore be required to accept the terms again if they close and reopen their browser before accessing SuperWEB2.

If your terms and conditions change, you can require all users to accept the new terms on next login. To do this:

  1. Update terms.html to reflect your new terms and conditions.
  2. Set (or update) the value of login.requireTermsVersion in the configuration.properties file. You can set this to any value you like. For example, you might set this to v2:

    CODE
    login.requireTermsVersion=v2

    When a user accepts the terms, SuperWEB2 stores the current value of this property against that user's account information in SuperADMIN. On subsequent logins, SuperWEB2 checks if the stored value of requireTermsVersion for that user matches the current setting in configuration.properties. If the value does not match then the user will be prompted to accept the new terms.

  3. Restart Tomcat or the SuperWEB2 service to apply the change.
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.