Add user agreement
This commit is contained in:
parent
27834e1211
commit
d24214949a
3 changed files with 54 additions and 2 deletions
|
|
@ -174,7 +174,18 @@ function handleSocketConfig(req, res) {
|
|||
"',ALLOW_SSL="+Config.get("https.enabled")+";" +
|
||||
(Config.get("https.enabled") ?
|
||||
"if(location.protocol=='https:'||USEROPTS.secure_connection){" +
|
||||
"IO_URL=WEB_URL=SSL_URL;}" : "")); }
|
||||
"IO_URL=WEB_URL=SSL_URL;}" : ""));
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles a request for the user agreement
|
||||
*/
|
||||
function handleUserAgreement(req, res) {
|
||||
logRequest(req);
|
||||
sendJade(res, "tos", {
|
||||
domain: Config.get("http.domain")
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
/**
|
||||
|
|
@ -198,6 +209,7 @@ module.exports = {
|
|||
app.get("/r/:channel", handleChannel);
|
||||
app.get("/", handleIndex);
|
||||
app.get("/sioconfig", handleSocketConfig);
|
||||
app.get("/useragreement", handleUserAgreement);
|
||||
require("./auth").init(app);
|
||||
require("./account").init(app);
|
||||
require("./acp").init(app);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue