Kliknite ovdje za prijavu
Pretražuju se:
Sve
Blogovi
Forumi
Vijesti
Stranice
Korisnički profili
MonoX
MonoX support board
Start the conversation, ask questions and share tips and solutions with fellow developers.
Non-registered users can only browse through our support boards. Please
register now
if you want to post your questions. It takes a second and it is completely free. Alternatively, you can
log in
without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.
{1}
##LOC[OK]##
{1}
##LOC[OK]##
##LOC[Cancel]##
{1}
##LOC[OK]##
##LOC[Cancel]##
Vrati se nazad na sve teme
LoginSocial.ascx restricting to Facebook only (
Mono Support
)
11355 put(a) pogledan
,
4 odgovor(a)
24.4.2013. 5:55:18
,
Kreirao(la) mrudul
mrudul
24.4.2013. 5:55:18
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.
Ovaj sadržaj još nije ocijenjen.
103
Reputacija
12
Ukupno objava
mrudul
24.4.2013. 6:50:12
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>
Ovaj sadržaj još nije ocijenjen.
103
Reputacija
12
Ukupno objava
iruzak
25.4.2013. 12:46:07
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.
Ovaj sadržaj još nije ocijenjen.
443
Reputacija
50
Ukupno objava
mrudul
30.4.2013. 0:13:51
Thanks.
Ovaj sadržaj još nije ocijenjen.
103
Reputacija
12
Ukupno objava
MonoX Nightly Builds
MonoX Gallery
MonoX Roadmap
Mono Software at GitHub
Additional Resources