You??™re now ready to follow these steps:
1. From the Server Behaviors panel, click the Add (+) button and choose User Authentication ??? Log
In User. The Log In User dialog box is displayed, as shown in Figure 23-20.
2. If there is more than one form on the page, select the form containing the username and password
fields from the Get Input From Form list.
3. Select the form element used to gather the username from the Username Field list.
4. Select the form element used to gather the password from the Password Field list.
5. Choose a connection to the data source containing the table of registered users from the Validate
Using Connection list.
6. Select the table of registered users from the Table list.
7. Choose the field containing the username from the Username Column list.
8. Choose the field containing the password from the Password Column list.
9. Enter the path to the page for the authorized user in the If Log In Succeeds, Go To field.
10. If you want the user to proceed to the previously selected link, rather than the page entered in
step 9, select the Go To Previous URL option.
11. Enter the path to the page for the unauthorized user in the If Log In Fails, Go To field.
757
Crafting Multiple-Page Applications 23
FIGURE 23-20
The Log In User server behavior can be used to gather information about a returning customer.
Pages:
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316