Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New auth server root template #1620

Open
wants to merge 2 commits into
base: auth-upgrade
Choose a base branch
from

Conversation

jeff-zucker
Copy link
Member

Hopefully this will work when served from the root.

Hopefully this will work when served from the root.
let user = UI.authn.currentUser();
if( user ) {
document.getElementById('prototype').style.display = "none";
var podRoot = user.uri.replace(/profile.*$/,'');
Copy link
Contributor

Choose a reason for hiding this comment

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

This does make and assumption about the form of the webid, but if that assumption fails, its ok as it will default to showing the user rather than the pod, which will be fine.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, and also, since this is a change to NSS, not mashlib, the assumption should hold.

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.

2 participants