diff options
author | Matthew Strapp <msattr@gmail.com> | 2021-04-30 21:35:25 -0500 |
---|---|---|
committer | Matthew Strapp <msattr@gmail.com> | 2021-04-30 21:35:25 -0500 |
commit | 2b37edf1e2f0b4a5e931b94de422e5bfc1ca1fa9 (patch) | |
tree | a397c151b8378e179609fdde2d59a8c037091c70 /csci4131/hw7/insert_into_accounts_table.js | |
parent | Rearrange, add old contacts page because other is "copyrighted" (diff) | |
download | homework-2b37edf1e2f0b4a5e931b94de422e5bfc1ca1fa9.tar homework-2b37edf1e2f0b4a5e931b94de422e5bfc1ca1fa9.tar.gz homework-2b37edf1e2f0b4a5e931b94de422e5bfc1ca1fa9.tar.bz2 homework-2b37edf1e2f0b4a5e931b94de422e5bfc1ca1fa9.tar.lz homework-2b37edf1e2f0b4a5e931b94de422e5bfc1ca1fa9.tar.xz homework-2b37edf1e2f0b4a5e931b94de422e5bfc1ca1fa9.tar.zst homework-2b37edf1e2f0b4a5e931b94de422e5bfc1ca1fa9.zip |
Finish HW
Diffstat (limited to 'csci4131/hw7/insert_into_accounts_table.js')
-rw-r--r-- | csci4131/hw7/insert_into_accounts_table.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/csci4131/hw7/insert_into_accounts_table.js b/csci4131/hw7/insert_into_accounts_table.js index 3157ce3..0be14ce 100644 --- a/csci4131/hw7/insert_into_accounts_table.js +++ b/csci4131/hw7/insert_into_accounts_table.js @@ -24,12 +24,12 @@ dbCon.connect(function (err) { console.log("Connected to database!"); const saltRounds = 10; - const myPlaintextPassword = 'tango'; // replace with password chosen by you OR retain the same value + const myPlaintextPassword = 'admin%'; // replace with password chosen by you OR retain the same value const passwordHash = bcrypt.hashSync(myPlaintextPassword, saltRounds); const rowToBeInserted = { - acc_name: 'charlie', // replace with acc_name chosen by you OR retain the same value - acc_login: 'charlie', // replace with acc_login chosen by you OR retain the same value + acc_name: 'admin$', // replace with acc_name chosen by you OR retain the same value + acc_login: 'admin$', // replace with acc_login chosen by you OR retain the same value acc_password: passwordHash }; |