user edit update

This commit is contained in:
2023-09-21 20:38:16 +05:00
parent ba9bfda202
commit da368013e6
4 changed files with 151 additions and 47 deletions

6
db.js
View File

@ -5,15 +5,15 @@ const db_host = "localhost";
const admin = mysql.createConnection({
host: db_host,
user: 'admin',
password: '484',
database: 'users'
password: 'secretpassword',
database: 'puzzle'
});
const user = mysql.createConnection({
host: db_host,
user: 'user',
password: 'user',
database: 'users'
database: 'puzzle'
});
db = (prevs = false) => {