How to use a custom landing page in a SharePoint 2013 mixed-mode login

Source: Internet
Author: User
Tags mixed

Review

When the SharePoint 2013 WebApplication is configured to log in mixed mode (FBA authentication and Windows authentication), we can, of course, customize the landing page (Sign in page). After you login to the SharePoint 2013 Central Administratio, locate the corresponding WebApplication and specify its sign in Page URL, as follows:

Create a custom landing page

First, to create a custom landing page, I chose Application page, which will be deployed in layouts and the same folder as the project name (C:\Program files\common Files\Microsoft Shared\Web Server extensions\15\template\layouts).

Then, in order to prevent the master page from having an effect on application pages, it is necessary to remove the reference to the master page, that is, dynamicmasterpagefile= "~masterurl/default.master"

Because the reference to the master page is removed, the 〈asp:content/> Control for the "landfills" control is not needed, so the entire application page is redesigned.

The login control based on form verification (FBA) selects the asp.net login control and sets its related properties. Take a common attribute as an example:

FailureText: message that prompts when landing fails

MembershipProvider: Custom Membership Provider, you need to inherit MembershipProvider, as detailed in the SharePoint 2013 Custom providers applications in form-based authentication (forms-based-authentication)

Displayrememberme:bool type that indicates whether to show remember me

Remembermeset: Indicates whether to send a persisted authenticated cookie to the user's browser, which defaults to False

TextLayout: There are 2 options, textonleft (label in TextBox left), Textontop (label on textbox)

Usernamelabeltext: User name label display text

Passwordlabeltext: Password Label display text

Loginbuttontype: There are 3 kinds of choices, Image, button,image

Loginbuttonimageurl: If Loginbuttontype chooses image, this property represents an image address

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.