WebSpeed
Product Update Bulletin
Validating a Password Using SpeedScript
This section describes how to validate a password in WebSpeed by executing a simple authentication procedure based on username and password. In the procedure, authorization and password variables are passed using an environment variable as written in SpeedScript. To demonstrate the steps in this authentication process, this example is designed to validate the hard-coded value mypass. The Post form method is used to protect the value of your password selection.
NOTE: The Get method is not recommended in this type of authentication process because it automatically displays the value of your password in your browser’s URL field.You can also modify this example to query a table that contains user and password information that must be verified.
- Create a blank HTML file.
- Enter the following code:
- Close and save the file.
- Create another blank HTML file and enter the following code:
- Close and save this second file with the filename val.html.
- Run the first HTML file you created in Step 2.
The word Accepted displays to verify the acceptance and validation of the username and password values.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |