generalizing data

This commit is contained in:
raven 2022-12-22 05:08:38 -05:00
parent d40ff36ac0
commit 6dad8527e3

View File

@ -7,8 +7,8 @@ const file = '/home/token.json'
var https = require('https'); var https = require('https');
// Set up SSL // Set up SSL
var privateKey = fs.readFileSync('/cert/grwh.work.key', 'utf8'); var privateKey = fs.readFileSync('/cert/cert.key', 'utf8');
var certificate = fs.readFileSync('/cert/grwh.work.cert.combined', 'utf8'); var certificate = fs.readFileSync('/cert/file.cert', 'utf8');
var credentials = {key: privateKey, cert: certificate}; var credentials = {key: privateKey, cert: certificate};
// Keep BASE URL in case its needed // Keep BASE URL in case its needed
@ -214,7 +214,7 @@ jsonfile.readFile(file, function (err, obj) {
// Hadling checking password // Hadling checking password
app.get('/checkPass', (req, res) => { app.get('/checkPass', (req, res) => {
(async () => { (async () => {
let pass = "scott" let pass = "changeme"
let sent = req.query.pass let sent = req.query.pass
if (pass == sent){ if (pass == sent){
console.log("User Authed Properly!") console.log("User Authed Properly!")