Mono Support LoginSocial.ascx restricting to Facebook only 

Viewed 10726 time(s), 4 post(s), 4/24/2013 5:55:18 AM - by mrudul
4/24/2013 5:55:18 AM
103 Reputation 12 Total posts

I am in the process of developing a website application, where I want to restrict social login to facebook only.  What is the best way to do it.

1
4/24/2013 6:50:12 AM
103 Reputation 12 Total posts

I think i found a way to do this.  I will share it with the group and let me know if it is not the correct way to do it.

Create a control which extends  MonoSoftware.MonoX.ModuleGallery.LoginSocial and in the ascx part of the file, only include the facebook part of the html.  comment the rest of the html part  like below


        <div class="social-button-holder">
            <asp:LinkButton ID="btnFacebook" runat="server" CausesValidation="false" OnClick="btn_Click" class="facebook" CommandArgument="FACEBOOK">
                <img src="<%= ResolveUrl(MonoSoftware.MonoX.Paths.App_Themes.img.Sn.facebook_login_png) %>" alt="<%= DefaultResources.LoginSocial_LoginWithFacebook %>" />
                <span><%= DefaultResources.LoginSocial_LoginWithFacebook %></span>
            </asp:LinkButton>
        </div>

2
4/25/2013 12:46:07 PM
443 Reputation 50 Total posts

Hi Mrudul,

extending MonoX LoginSocial control is fine, but you shouldn't delete buttons you don't want to use, instead put placeholder around them and set visibility to false.

3
4/30/2013 12:13:51 AM
103 Reputation 12 Total posts

Thanks.

4
This is a demo site for MonoX. Please visit Mono Software for more info.