An authenticated user is easier to track. By enabling your site for login and registration, you can capture data on prospective candidates, communicate with them, and allow them to update their own information. Having registered job applicants makes the application process easier. Force Platform Sites provides seamless integration with the Customer Portal product, as well as built-in login and registration logic, making it easy for public users become authenticated users.
This topic covers the following steps:
Creating an Account and Updating the Apex Class with the Account ID
Associating a Role with the Account User Record
Force Platform Sites leverages a lot of existing Customer Portal settings. To integrate your site with a Customer Portal, you first need to enable the Customer Portal by doing the following:
Your Self-Registration Settings section of the Customer Portal Setup page should look like this:
By associating your Force Platform site with a Customer Portal, you create a seamless bridge between your public website and the authenticated Customer Portal. Now that you have enabled and configured Customer Portal, you need to associate it with your site by doing the following:
1. | |
2. | Click the site label link for your site. This takes you to the Site Details page. |
3. | Click Login Settings. |
4. | Click Edit. |
5. | From the Enable Login For list, select the Customer Portal that you just configured. |
6. | Select a Change Password Page. A default page is provided, but you can select your own page using the lookup field instead. |
7. | Select the Require Non-Secure Connections (HTTP) checkbox if you want to override your organization’s security settings and exclusively use HTTP when logging in to the Customer Portal. If this checkbox is not selected, the Require Secure Connections (HTTPS) setting found at Setup
Security Controls
Session Settings is used to determine the security level. |
8. | Click Save. |
Browse to your site’s URL and notice that your site contains new login and registration links on the site header. The system automatically created the Visualforce pages and Apex classes necessary to integrate with the Customer Portal. The SiteHeader component automatically enabled the Login, Forgot Your Password?, and New User? links and associated them to the correct pages.
There are just a few more steps before your online recruiting flow is fully functional. Customer Portal users need to be associated with a contact under an account so that they can be tracked in the system. By creating an account that is associated with all of your job applicants, you can track applicant information as user records.
First, create a new Account, named Online Registration Account, and copy the 15-digit Account ID from the URL. The ID comes at the end of the URL. Update the SiteRegisterController with this ID. This ensures that all candidates registering through your public site are associated with the Online Registration Account.
To update the Account ID in the SiteRegisterController, do the following:
1. | Click Setup
Develop
Apex Classes. |
2. | Click Edit next to SiteRegisterController. |
3. | Find the private static Id PORTAL_ACCOUNT_ID = '<Account_ID>'; line and insert the ID for the Online Registration Account that you just created. The line should look like this: private static Id PORTAL_ACCOUNT_ID = '001D000000IVvTF'; |
4. | Click Save. |
3.15.3.136