commiting changes before work

This commit is contained in:
Expand-sys 2021-06-11 07:30:24 +10:00
parent b2ffae680c
commit 0632ce5d30
2 changed files with 2 additions and 1 deletions

View file

@ -3,7 +3,7 @@ const got = require("got");
async function postUser(name, password) {
console.log(process.env.BANKAPIURL);
try {
const { body } = await got.get(
const { body } = await got.post(
process.env.BANKAPIURL + "BankF/user/" + name,
{
headers: {

View file

@ -380,6 +380,7 @@ app.post("/login", async function (req, res) {
req.session.password = password;
res.redirect("/BankF");
} else if (verified.body.value == -1) {
req.session.errors = [];
req.session.errors.push({ msg: "User not found" });
res.redirect("/login");
} else if (verified.body.value == 0) {