Register Link in Sign-In

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
2/24/2009 7:40:13 PM
Gravatar
Total Posts 55

Register Link in Sign-In

A "register" link appears under the "sign in" link in /Secure/Login.aspx when "Allow New Users to Register" in Site Settings is off. I am using LDAP security setting.

2/25/2009 4:51:26 AM
Gravatar
Total Posts 18439

Re: Register Link in Sign-In

Hi,

I'm not able to reproduce this problem. What db platform are you using?

Best,

Joe 

2/26/2009 11:57:43 AM
Gravatar
Total Posts 55

Re: Register Link in Sign-In

Joe,

Using SQL DB. Have LDAP authentication enabled.

Thanks

2/26/2009 12:12:24 PM
Gravatar
Total Posts 18439

Re: Register Link in Sign-In

When I review the code for /Secure/Login.aspx the logic for showing the link has no check about LDAP, it only checks if registration is allowed. On my installations setting this to false in Site Settings removes the register link:

lnkRegisterExtraLink.Visible = siteSettings.AllowNewRegistration; 

What version of mojoPortal and what OS?

I cannot produce this problem here.

Best,

Joe

2/26/2009 12:27:26 PM
Gravatar
Total Posts 18439

Re: Register Link in Sign-In

I just took a closer look and by viewing the source of the rendered page there is a link there with no text so it was not visible in the browser but does exist.

<a href="Register.aspx" id="ctl00_mainContent_LoginCtrl_lnkRegister"></a>

It seems there is an extra link besides the one I showed the hide logic for. My best guess is its just a relic from the old implementation before 2.0 .NET came out and provided a LoginControl we had implemented our own. I think this link can be safely removed from the Logoin.aspx file using a text editor, look for this and remove it:

<br /><a id="lnkRegister" href="Register.aspx" runat="server"></a>

I just removed it from my copy and it seems fine.

Hope it helps,

Joe

3/2/2009 1:40:49 PM
Gravatar
Total Posts 55

Re: Register Link in Sign-In

I did find the extra link in login.aspx and removed it. Still displays Register on the login screen though.

Version: 2.2.8.6 MSSQL

 

3/5/2009 6:49:35 AM
Gravatar
Total Posts 18439

Re: Register Link in Sign-In

I would look in the mp_Sites table and ensure that the AllowNewRegistration field is set to 0 

Hope it helps,

Joe

3/12/2009 8:00:32 AM
Gravatar
Total Posts 55

Re: Register Link in Sign-In

AllowNewRegistration in mp_sites table was not set to 0. I set this manually in the table to 0 and that has corrected the issue. Not sure why it was not being set through the Site Settings - Security - Main page since I did have the checked off.

Thanks for the help.

Derek

3/12/2009 8:12:48 AM
Gravatar
Total Posts 18439

Re: Register Link in Sign-In

I had a feeling that was the case. I think it was a bug in the Site Settings page where it would look like that was false in the UI (when using LDAP) when in fact it was true in the db, but it was not persisting it correctly in that case from the site settings page. I have corrected it recently in svn but I'm not curretly setup to test LDAP so haven't verified the fix.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.