mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
try to disable possible cause of too many redirects
This commit is contained in:
@@ -91,9 +91,6 @@ api.getNewClient = {
|
||||
method: 'GET',
|
||||
url: '/',
|
||||
async handler (req, res) {
|
||||
if (!(req.session && req.session.userId)) {
|
||||
return res.redirect('/');
|
||||
}
|
||||
return res.sendFile('./dist-client/index.html', {root: `${__dirname}/../../../../`});
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user