i7MEDIA / mojoportal

mojoPortal is an extensible, cross database, mobile friendly, web content management system (CMS) and web application framework written in C# ASP.NET.
https://www.mojoportal.com
Other
197 stars 100 forks source link

On the login page, the register link label should abide by the right display rules #211

Closed Isaac-Hall closed 1 year ago

Isaac-Hall commented 1 year ago

Here: https://github.com/i7MEDIA/mojoportal/blob/63c28df3d0902e9d30455e2428aab43051462275/Web/Controls/LoginControl.ascx.cs

On line 121 we set a "visible" state based on the siteSettings.AllowNewRegistration for the register link (called lnkExtraLink), but we don't ever appear to set the same visible state for the register prompt (lblRegisterPrompt).

The result is that on a site with "allow new registrations" set to false in site settings, the label still shows on the login page asking "Need An Account?" but the register link doesn't show next to it.