diff --git a/pass/routes/admin/index.js b/pass/routes/admin/index.js index aeceb1ca1f9cad0cfb8e2fb7a63a716f64b6b77e..1b0ec66cb4d2124589f724ebf90138c8a8626e10 100644 --- a/pass/routes/admin/index.js +++ b/pass/routes/admin/index.js @@ -358,7 +358,7 @@ router.post("/key", (req, res) => { }); } } else { - return Key.GET_KEY(req.body.key, false).then((key) => { + return Key.GET_KEY(req.body.key.trim(), false).then((key) => { return res.redirect(`${res.baseDir}/admin/key/${key.get_key()}`); }); }