Code


Edward McGillis & Yun Li


Initial Revision
Description: This is the implementation of user story #1. You can see the user story and the unit tests here .

This code was written by Edward and Yun at Edward's residence. It was coded using Allaire's ColdFusion Studio 4.0. It was tested on Microsoft's Personal Web Server running Allaire's ColdFusion Server 4.5. PWS security options were applied to make a secure login.

The implementation was created with 2 .cfm files, login.cfm and authen.cfm. The user first sees the login.cfm page where he inputs his userid and password into the forms and presses the authenticate button. The contents of the form are sent to authen.cfm which queries the login.mdb database (screenshot here ), and is the user exists it gets the password and user type from the database. If the password the user submitted matches the password from the database the user is granted the level of access defined in the type field. If the passwords do not match, the user receives a "password error" message. If the user name could not be found in the database, the user receives a "username error" message.


Hosted by www.Geocities.ws

1