mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2025-12-16 23:02:13 +11:00
ugh i should test before pushing but i am lazy
This commit is contained in:
parent
6fa65dbb0b
commit
619e7f5783
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
|
@ -309,8 +309,8 @@ app.post("/register", async function (req, res) {
|
|||
|
||||
let checkuser = await got(process.env.BANKAPIURL + "BankF/contains/" + name);
|
||||
checkuser = JSON.parse(checkuser.body).value;
|
||||
let errors = req.session.errors;
|
||||
let successes = req.session.successes;
|
||||
req.session.errors = [];
|
||||
req.session.successes = [];
|
||||
if (checkuser == false) {
|
||||
if (!name || !password || !password2) {
|
||||
errors.push({ msg: "please fill in all fields" });
|
||||
|
|
|
|||
Loading…
Reference in a new issue