Update gallery.js

This commit is contained in:
Tanner 2020-05-13 19:01:27 -07:00
parent a2571b07ed
commit 6fcca0be29
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.key, admin: { key: this.c.admin.key }, public: false })) {
if (!this.auth(password, req.body.password, { key: this.c.admin.key, admin: { key: this.c.admin.key }, public: false })) {
res.statusCode = 401;
res.render('unauthorized');
res.end();