mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-29 15:42:18 +00:00
Initial cut of auth finished, add more info on account authorisation
This commit is contained in:
parent
523bf2a099
commit
539b10056e
4 changed files with 8 additions and 4 deletions
|
@ -26,7 +26,6 @@ npm start
|
||||||
|
|
||||||
Required for Production:
|
Required for Production:
|
||||||
|
|
||||||
- ENSL.org: Authentication
|
|
||||||
- Admin tools: Modify Messages
|
- Admin tools: Modify Messages
|
||||||
- Admin tools: Remove gatherer
|
- Admin tools: Remove gatherer
|
||||||
- ENSL.org: Pull bans
|
- ENSL.org: Pull bans
|
||||||
|
|
|
@ -6,7 +6,9 @@ var config = require("./config.js");
|
||||||
|
|
||||||
module.exports = app => {
|
module.exports = app => {
|
||||||
app.get("/", (request, response, next) => {
|
app.get("/", (request, response, next) => {
|
||||||
response.render("index.hbs");
|
response.render("index.hbs", {
|
||||||
|
redirect: config.ensl_url
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get("/redirect", (request, response, next) => {
|
app.get("/redirect", (request, response, next) => {
|
||||||
|
|
|
@ -23,7 +23,10 @@
|
||||||
<div>
|
<div>
|
||||||
<img src="/images/ensl_logo.png" alt="ENSL Logo" />
|
<img src="/images/ensl_logo.png" alt="ENSL Logo" />
|
||||||
</div>
|
</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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<div>
|
<div>
|
||||||
<img src="/images/ensl_logo.png" alt="ENSL Logo" />
|
<img src="/images/ensl_logo.png" alt="ENSL Logo" />
|
||||||
</div>
|
</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 />
|
<br />
|
||||||
<p><a class="btn btn-primary btn-lg" href="{{ redirect }}" role="button">Go to website</a></p>
|
<p><a class="btn btn-primary btn-lg" href="{{ redirect }}" role="button">Go to website</a></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue