Update gallery.js
This commit is contained in:
parent
9f8e7c5403
commit
c95d2fb3c6
|
@ -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, { public: false, admin: { key: this.c.admin.key } })) {
|
||||
if (!this.auth(password, req.body.password, this.c )) {
|
||||
res.statusCode = 401;
|
||||
res.render('unauthorized');
|
||||
res.end();
|
||||
|
|
Loading…
Reference in New Issue