From 901389f3c2b9149f8bcc0c8375a015562bf5de36 Mon Sep 17 00:00:00 2001
From: John Morrison <jrgmorrison@gmail.com>
Date: Thu, 6 Sep 2012 18:01:52 -0700
Subject: [PATCH] add missing placeholder on INSERT statement for adding test
 users

---
 lib/db/mysql.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/db/mysql.js b/lib/db/mysql.js
index ee9f2ac54..bb33403a7 100644
--- a/lib/db/mysql.js
+++ b/lib/db/mysql.js
@@ -591,7 +591,7 @@ exports.cancelAccount = function(uid, cb) {
 
 exports.addTestUser = function(email, hash, cb) {
   client.query(
-    "INSERT INTO user(passwd, lastPasswordReset) VALUES(FROM_UNIXTIME(?))",
+    "INSERT INTO user(passwd, lastPasswordReset) VALUES(?, FROM_UNIXTIME(?))",
     [ hash, now() ],
     function(err, info) {
       if (err) return cb(err);
-- 
GitLab