mirror of https://github.com/calzoneman/sync.git
Fix database typo
This commit is contained in:
parent
22ccde12e7
commit
5f70e9dc80
|
@ -1071,7 +1071,7 @@ Database.prototype.genPasswordReset = function (ip, name, email, callback) {
|
|||
query = "INSERT INTO password_reset " +
|
||||
"(ip, name, hash, email, expire) VALUES (?, ?, ?, ?, ?) " +
|
||||
"ON DUPLICATE KEY UPDATE hash=?, expire=?";
|
||||
self.query(query, [ip, name, hash, email, exp, hash, exp],
|
||||
self.query(query, [ip, name, hash, email, exp, hash, expire],
|
||||
function (err, res) {
|
||||
if(err) {
|
||||
callback(err, null);
|
||||
|
|
Loading…
Reference in New Issue