Update gallery.js

This commit is contained in:
Tanner 2019-11-07 12:07:55 -08:00 committed by GitHub
parent 9f8e7c5403
commit c95d2fb3c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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, { 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();