Skip to content

Conversation

@vagisha
Copy link
Collaborator

@vagisha vagisha commented Jan 29, 2026

Rationale

We will enable self-sign-up on PanoramaWeb. For pages that don't allow guest access, add a link to "Register" for an account in case the user does not have one.
image

Related Pull Requests

Copy link
Contributor

@labkey-jeckels labkey-jeckels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of small requests.

Seems like we should add a basic test for this. We don't need to cover the self-registration case, but we could add to an existing test. Give guests access to the folder, logout, check that you can see a page or two, and that you get this prompt when you hit a blocked action.

" to view this data")));
"Login"),
" to view this data.",
DOM.BR(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest conditionalizing this with a check to AuthenticationManager.isRegistrationEnabled(). Otherwise, on other servers it would send the user to a 404.

@NotNull
private static HtmlView getLoginView(ViewContext context, Container container)
{
ActionURL registerUrl = new ActionURL("login", "register", container);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I opened a PR to expose this via LoginUrls. Please switch to use that.

LabKey/platform#7372

- Show "Register" link only if AuthenticationManager.isRegistrationEnabled()
- Added test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants