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
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.
wiki-security-passportjs/server/social.coffee
Lines 430 to 446 in 9e3d7d3
With default-data overlay we should rely on this mechanism for login messaging.
fedwiki/wiki-server#144