Update gallery.js

This commit is contained in:
Tanner 2020-05-13 19:04:10 -07:00
parent 6fcca0be29
commit e8cda18f9b
1 changed files with 1 additions and 1 deletions

View File

@ -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();