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

This commit is contained in:
2024-07-12 18:13:03 +02:00
parent aaff0ed4ea
commit 44631acfc6
27 changed files with 704 additions and 534 deletions

View File

@@ -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();