diff --git a/inc/fftcgdb.coffee b/inc/fftcgdb.coffee index 9c17d23..6b1f8fb 100644 --- a/inc/fftcgdb.coffee +++ b/inc/fftcgdb.coffee @@ -30,7 +30,7 @@ FFTCGDB = that = @ bcrypt.hash password, saltRounds, (err, hash) -> - that.db.run 'INSERT INTO users (nick, pwd) VALUES (\'' + name + '\', \'' + hash + '\');', (err, result) -> + that.db.run "INSERT INTO users (nick, pwd) VALUES ('#{name}', '#{hash}');", (err, result) -> if err console.error err.message console.log 'Result:', result