From 3a70d1333970303dc2a058f98ff514ce949c5ecd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Thu, 13 Dec 2018 18:48:55 +0100 Subject: [PATCH] template string --- inc/fftcgdb.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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