Skip to content
Snippets Groups Projects
Commit 6365b6a8 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

fixed key redirection

parent 34ee627f
No related branches found
No related tags found
No related merge requests found
Pipeline #7433 passed
...@@ -30,9 +30,11 @@ router.get("/remove", (req, res) => { ...@@ -30,9 +30,11 @@ router.get("/remove", (req, res) => {
router.get("/enter", function (req, res, next) { router.get("/enter", function (req, res, next) {
if (req.cookies.key) { if (req.cookies.key) {
res.redirect( Key.GET_KEY(req.cookies.key, false).then(key => {
`${res.locals.baseDir}/key/` + encodeURIComponent(req.cookies.key) res.redirect(
); `${res.locals.baseDir}/key/` + encodeURIComponent(key.get_key())
);
});
} else { } else {
res.render("login/key"); res.render("login/key");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment