template string
This commit is contained in:
parent
6cfacc6ec9
commit
3a70d13339
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ FFTCGDB =
|
||||||
that = @
|
that = @
|
||||||
|
|
||||||
bcrypt.hash password, saltRounds, (err, hash) ->
|
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
|
if err
|
||||||
console.error err.message
|
console.error err.message
|
||||||
console.log 'Result:', result
|
console.log 'Result:', result
|
||||||
|
|
Reference in a new issue