mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
fix: a typo in authenticatedOrRedirect
This commit is contained in:
parent
c53778e7c1
commit
7e8b31cd09
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ const authenticatedOrRedirect = (req, res, next) => {
|
||||||
if (user) {
|
if (user) {
|
||||||
next();
|
next();
|
||||||
} else {
|
} else {
|
||||||
res.redirect('/auth/login').end();
|
res.redirect('/auth/login');
|
||||||
}
|
}
|
||||||
} else next();
|
} else next();
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue