Skip to content

Commit

Permalink
login and singup queries created
Browse files Browse the repository at this point in the history
Relates #2 #10
  • Loading branch information
Nicos committed Apr 12, 2018
1 parent e48c6ca commit 462b4f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Queries/register_user.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const dbConnection = require("../database/db_connection.js");

const register_user = (user, cb) => {
dbConnection.query(
`INSERT INTO users(name, password) VALUES ($1, $2)`,
`INSERT INTO users(username, password) VALUES ($1, $2)`,
[
user.username,
user.password,
Expand Down

0 comments on commit 462b4f6

Please sign in to comment.