OrchardCMS / Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
https://orchardproject.net
BSD 3-Clause "New" or "Revised" License
2.38k stars 1.12k forks source link

"Sign In" prompt should indicate when users can self-register #1524

Open orchardbot opened 13 years ago

orchardbot commented 13 years ago

jsurfage created: https://orchard.codeplex.com/workitem/17695

The "Sign In" prompt should change to something like "Sign In/Register" to indicate that users can both:

Suggestion: To fix this issue, modify Orchard.Core.Shapes.Views.ShapeResult.User.cshtml as follows:

@using System.Web.Mvc; @using Orchard.ContentManagement;

@{ var userCanRegister = @WorkContext.CurrentSite.As().UsersCanRegister; var SignInPrompt = ""; if (userCanRegister) { SignInPrompt = T("Sign In/Register").ToString(); } else { SignInPrompt = T("Sign In").ToString(); }; }

@if (Request.IsAuthenticated) { } else { }
agriffard commented 9 years ago

There is such a code on Logon.cshtml but there is a weird behavior : It only appears if there is a ReturnUrl in the querystring (ex : .../Account/AccessDenied?ReturnUrl=%2Fadmin)