Initial cut of auth finished, add more info on account authorisation

This commit is contained in:
Chris Blanchard 2015-08-18 11:53:28 +01:00
parent 523bf2a099
commit 539b10056e
4 changed files with 8 additions and 4 deletions

View File

@ -26,7 +26,6 @@ npm start
Required for Production:
- ENSL.org: Authentication
- Admin tools: Modify Messages
- Admin tools: Remove gatherer
- ENSL.org: Pull bans

View File

@ -6,7 +6,9 @@ var config = require("./config.js");
module.exports = app => {
app.get("/", (request, response, next) => {
response.render("index.hbs");
response.render("index.hbs", {
redirect: config.ensl_url
});
});
app.get("/redirect", (request, response, next) => {

View File

@ -23,7 +23,10 @@
<div>
<img src="/images/ensl_logo.png" alt="ENSL Logo" />
</div>
<h3>You need to be logged to the ENSL website to access gathers</h3>
<h3>You need to be logged in to the ENSL website ({{ redirect }}) to access gathers</h3>
<h3><small>If this error persists please contact an admin to fix it</small></h3>
<br />
<p><a class="btn btn-primary btn-lg" href="{{ redirect }}" role="button">Go to website</a></p>
</div>
</div>
</div>

View File

@ -5,7 +5,7 @@
<div>
<img src="/images/ensl_logo.png" alt="ENSL Logo" />
</div>
<h2>You need to be logged to the ENSL website to access gathers</h2>
<h2>You need to be logged in to the ENSL website ({{ redirect }}) to access gathers</h2>
<br />
<p><a class="btn btn-primary btn-lg" href="{{ redirect }}" role="button">Go to website</a></p>
</div>