Chapter 6: Central User Management System 201 /* (Yahoo web hosting)
Chapter 6: Central User Management System 201 /* ————–END TABLE NAMES ———————- */ $STATUS_TEMPLATE = usermngr_status.html ; $USERMNGR_MENU_TEMPLATE = usermngr_menu.html ; $USERMNGR_USER_TEMPLATE = usermngr_user_form.html ; $USERMNGR_PWD_REQUEST_TEMPLATE= usermngr_forgotten_pwd.html ; $USERMNGR_PWD_EMAIL_TEMPLATE = usermngr_forgotten_pwd_email.html ; $USERMNGR_PWD_RESET_TEMPLATE = usermngr_pwd_reset.html ; $USERMNGR_PWD_CHANGE_TEMPLATE = usermngr_pwd_change.html ; $ADMINISTRATIVE_USER = 9; $STANDARD_USER = 1; $USER_TYPE = array( 9 => Administrator , 1 => Standard User ); ?> To make it easy for users to reset forgotten passwords, you can add the forgotten- password application link in the login interface template. Figure 6-7 shows such a login interface. Figure 6-7: Central login interface with forgotten-password link. Testing the forgotten-password recovery application To test the forgotten password application, simply click the forgotten-password link on the login interface. Submit a user s e-mail address and wait for an e-mail to appear in the user s mailbox. Click on the link in the e-mail and change the password. (See Figure 6-8.) After you ve changed the password, you can log in to any application that uses the central authentication system with the user s name and the new password.