template string

This commit is contained in:
Jörn-Michael Miehe 2018-12-13 18:48:55 +01:00
parent 6cfacc6ec9
commit 3a70d13339

View file

@ -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