From 494c91ce643ee568546a6a6bd8b151e2145f183b Mon Sep 17 00:00:00 2001 From: Lloyd Hilaiel <lloyd@hilaiel.com> Date: Thu, 15 Sep 2011 10:17:06 -0600 Subject: [PATCH] fix porting bug in mysql driver. For stageEmail, the INSERT query errantly included references to 'pubkey' --- browserid/lib/db_mysql.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browserid/lib/db_mysql.js b/browserid/lib/db_mysql.js index 8392d3597..93fc3a7ce 100644 --- a/browserid/lib/db_mysql.js +++ b/browserid/lib/db_mysql.js @@ -323,7 +323,7 @@ exports.stageEmail = function(existing_email, new_email, cb) { // overwrite previously staged users client.query('INSERT INTO staged (secret, new_acct, existing, email) VALUES(?,FALSE,?,?) ' + 'ON DUPLICATE KEY UPDATE secret=?, existing=?, new_acct=FALSE, passwd=""', - [ secret, existing_email, new_email, pubkey, secret, existing_email, pubkey], + [ secret, existing_email, new_email, secret, existing_email], function(err) { if (err) { logUnexpectedError(err); -- GitLab