f
This commit is contained in:
@@ -221,14 +221,14 @@ export default new class {
|
||||
return next();
|
||||
};
|
||||
|
||||
async loggedin(req, res, next) {
|
||||
if(!req.session) {
|
||||
return res.reply({
|
||||
code: 401,
|
||||
body: "401 - Unauthorized"
|
||||
});
|
||||
}
|
||||
return next();
|
||||
};
|
||||
// async loggedin(req, res, next) {
|
||||
// if(!req.session) {
|
||||
// return res.reply({
|
||||
// code: 401,
|
||||
// body: "401 - Unauthorized"
|
||||
// });
|
||||
// }
|
||||
// return next();
|
||||
// };
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user