Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed the issues with the aws access denied issues and also the prost… #4

Merged
merged 1 commit into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions server/controllers/authContollers.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ authControllers.signup = async(req, res, next) => {
const result = await db.query(signupQuery, values)


const userQuery = 'SELECT _id FROM users WHERE username = $1 AND password = $2'
const userQuery = 'SELECT user_id FROM users WHERE username = $1 AND password = $2'
const result1 = await db.query(userQuery, values)
console.log('this is result1', result1)
const userId = result1.rows[0]['_id'];
const userId = result1.rows[0]['user_id'];
console.log('this is result1.rows:', userId)
res.locals.userId = userId
next();
Expand Down
Binary file added uploads/4d0c6bbcf15296b870c652c416199b54
Binary file not shown.
Binary file added uploads/d18663dd6bbf6d7bc256b4dddb6ffef7
Binary file not shown.
Binary file added uploads/e1d23f7593344ab8c1b33b8993b50255
Binary file not shown.