mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 15:17:02 +02:00
new 403 page
This commit is contained in:
@@ -27,7 +27,7 @@ var fs = require('fs');
|
||||
loadTemplates([
|
||||
'header', 'footer', 'register', 'home',
|
||||
'login', 'reset', 'reset_code', 'account_settings',
|
||||
'logout',
|
||||
'logout', '403',
|
||||
'emails/reset', 'emails/reset_plaintext'
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ var express = require('express'),
|
||||
});
|
||||
|
||||
app.get('/403', function(req, res) {
|
||||
res.send(403, 'You are not authorized to view this page');
|
||||
res.send(templates['header'] + templates['403'] + templates['footer']);
|
||||
});
|
||||
|
||||
module.exports.init = function() {
|
||||
|
||||
Reference in New Issue
Block a user