Update gallery.js
This commit is contained in:
parent
6fcca0be29
commit
e8cda18f9b
|
@ -10,7 +10,7 @@ async function post(req, res) {
|
|||
res.setHeader('Content-Type', 'text/html');
|
||||
const protocol = this.protocol();
|
||||
const password = this.c.admin.key;
|
||||
if (!this.auth(password, req.body.password, { key: this.c.admin.key, admin: { key: this.c.admin.key }, public: false })) {
|
||||
if (req.body.password !== this.c.admin.key) {
|
||||
res.statusCode = 401;
|
||||
res.render('unauthorized');
|
||||
res.end();
|
||||
|
|
Loading…
Reference in New Issue