mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Update server.js
This commit is contained in:
committed by
GitHub
parent
be5056f712
commit
26e4214a50
@@ -108,7 +108,7 @@ app.get('/robots.txt', function (req, res) {
|
|||||||
app.use(function (req, res, next) {
|
app.use(function (req, res, next) {
|
||||||
var cookie = req.cookies._uI;
|
var cookie = req.cookies._uI;
|
||||||
if (cookie === undefined) {
|
if (cookie === undefined) {
|
||||||
var user_name = rndName(uniqid.time(), 15);
|
var user_name = Functions.rndName(uniqid.time(), 15);
|
||||||
res.cookie('_uI',user_name, { maxAge: 365 * 10000 * 3600000 });
|
res.cookie('_uI',user_name, { maxAge: 365 * 10000 * 3600000 });
|
||||||
}
|
}
|
||||||
next();
|
next();
|
||||||
|
|||||||
Reference in New Issue
Block a user