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

Custom "Login Required" Text for Restricted Sites #20

Open
WardCunningham opened this issue Oct 14, 2018 · 0 comments
Open

Custom "Login Required" Text for Restricted Sites #20

WardCunningham opened this issue Oct 14, 2018 · 0 comments

Comments

@WardCunningham
Copy link
Member

When a non-logged-in user visits a restricted site this plugin inserts in place of the requested page a "Login Required". The text of this message is stored in the code.

# not happy, explain why these pages can't be viewed
problem = "This is a restricted wiki requires users to login to view pages. You do not have to be the site owner but you do need to login with a participating email address."
details = "[#{argv.details || 'http://ward.asia.wiki.org/login-to-view.html'} details]"
res.status(200).json(
{
"title": "Login Required",
"story": [
{
"type": "paragraph",
"id": "55d44b367ed64875",
"text": "#{problem} #{details}"
}
]
}
)

With default-data overlay we should rely on this mechanism for login messaging.
fedwiki/wiki-server#144

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

No branches or pull requests

1 participant