Urgent correction of version v1.0.0-beta.14 due to crash issues when acting on the CDN.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -33,9 +33,9 @@ async function checkUserExistsAD(req, res, next) {
|
||||
} else if (req.user.id) {
|
||||
existingUser = users.find(u => u.id === req.user.id);
|
||||
}
|
||||
|
||||
|
||||
if (!existingUser) {
|
||||
const id = Math.floor(Math.random() * 1e19);
|
||||
const id = Math.floor(Math.random() * 1e19);
|
||||
const newUser = {
|
||||
id: id.toString(),
|
||||
name: req.user.name || req.user.id,
|
||||
@@ -55,7 +55,7 @@ async function checkUserExistsAD(req, res, next) {
|
||||
} else {
|
||||
req.user = existingUser;
|
||||
req.session.userId = existingUser.id;
|
||||
res.render('AuthLogin', { isAuthenticated: true, setupData: {}, currentUrl: req.originalUrl, errorMessage: '' });
|
||||
res.status(200).render('AuthLogin', { isAuthenticated: true, setupData: {}, currentUrl: req.originalUrl, errorMessage: '' });
|
||||
}
|
||||
|
||||
return next();
|
||||
|
||||
Reference in New Issue
Block a user