Create the public login page that uses the new provider
After you were able to Custom membership provider: Example of using the custom membership provider, you can use the same user to login to the frontend. To test this, perform the following:
-
Using the Defaultauthentication provider, login to Sitefinity CMS with the admin account.
-
Create a page and drop the Loginwidget in one of the placeholders.
You can find the Loginwidget under the Loginsection. -
In the upper-right corner of the widget, click Edit.
-
In MembershipProviderfield, enter
CustomMembershipProvider. -
Save the widget.
-
Drop the Login namewidget in another placeholder on the page.
NOTE: If you are using MVC widgets on your page, you need to have a hybrid page to add a Login name widget because it is a Web Forms widget. For more information, see Overview: Page templates.
-
Publishthe page.
-
Logout of Sitefinity CMS and navigate to your newly created page.
-
Login with the sfcustomeraccount that Custom membership provider: Example of using the custom membership provider.
After authentication, the full name appear on the site, indicating you are successfully authenticated and authorized using the new custom membership provider.