Adding the Login Component

From Documentation
Jump to: navigation, search

Adding the Login Component

The Login component is used to create the form in which visitors will enter their user name and password to gain access to your protected pages.

  1. In Page view, from the Custom Components toolbox, select NOF Secure Site > Login.
  2. Draw a box on the Layout to indicate where you want to position the Login component.

The NOF Secure Site dialog appears.

  1. If you have not created a Component Suite, create a new one by typing a name for the suite in the New name field. To include the component as part of an existing suite, click the Existing radio button and select the Component Suite that you want to add the component to. See Using Component Suites.
  2. From the Profile drop-down list, select the settings profile that you want to use for the component. If you have not created a settings profile, the default profile will be used. See Creating Component Profiles.
  3. Click OK to close the NOF Secure Site dialog.

The Login dialog appears.

  1. On the Fields tab of the Login dialog, you can set the properties for the form labels and objects that appear on the Login form, as well as establish the error events.
  2. Click the Page tab to configure error and success handling events:
  • In the Error Handling section, Check the Show error messages check box to display error messages when the site visitor enters incorrect log-in information. The log-in form will display error messages beneath the controls at the bottom of the page.

Check the Show error marker check box to display an error marker (symbol) to indicate the invalid input text, where the site visitor has incorrectly filled in a field. The error marker will be displayed between the field's label and the field.

Use the browse button to choose a different image for the error marker.

  • In the Success Handling Section, Set the Success-Handling Options:
  • In the Success Handling field, choose the page where the site visitor will be redirected after successfully logging in to the site. If a valid user name and password are entered, the site visitor will automatically be redirected to the selected success page. For example, you could choose to have the Home page refresh in the browser after visitor logs in successfully.
  1. On the General tab, configure the following settings:
  • Click the Publish scripts in debug mode check box to view in-depth troubleshooting information should the component not function properly when published.
  • Select the language (English or German) of your component script.
  • In the Path to database field, enter the path to the flat file database file where you registered users information is to be stored. The default database file is db/users.csv.
  • Click the Wizard button to launch the DB Creation Wizard. See Using the DB Creation Wizard.

If you do not use the Wizard button next to the Database field and you leave ../db/users.csv in the default value, then you will have to manually create the /db folder on the server (in the folder where you publish the site) and grant write permission to the /db folder.

  • Enter the Server (IP) address and Port of the server that will handle sending e-mails confirming new user accounts. Consult your host provider or site administrator to obtain this information.
  • In the E-mail field, enter the e-mail address to which you want new users'signup notifications to be sent.The Secure Site Administrator will receive an e-mail each time anew user creates an account.
  • In the From field, enter the e-mail address from which you want to send visitors e-mails confirming that their account has been successfully created.
  • If necessary check the smtp requires authentication check box and then fill in the Username and the Password fields with the SMTP user name and password.
  • Check the smtp requires ssl check box if the SMTP server requires a secure connection (SSL).

Note: Consult your host provider or site administrator to obtain details about the authentication and/or SSL possibly required by the SMTP server.

Note: The secure connection (SSL) and authentication for an SMTP server are used by some host providers to increase security and stem the flow of email messages propagating spam, viruses, and worms.

  1. To save the Login Component settings as a profile that you can apply to additional NOF Secure Site components that you add to your site, click Save Profile. See Creating Component Profiles.
  2. Click OK to close the Login dialog.

You cannot add the Login component to a page containing a Secure Site component.