   token = parseToken(token)
   return Q.reject(new Error) unless token
 
-  sql = 'DELETE FROM user_reset WHERE user_id=? AND token=?'
+  sql = 'DELETE FROM reset WHERE user_id=? AND token=?'
   query(sql, token)
 
 

  return Q.resolve() unless match
  [id, token] = match

  sql = 'SELECT id, name, email, password FROM user_register WHERE id=? AND token=?'
  query(sql, [id, token]).then (rows) ->
    return unless rows.length
    return rows[0]

# -----------------------------------------------------------------------------

reset_add = (id, token) ->
  sql = 'INSERT INTO reset (user_id, token) VALUES (?, ?)'
  query(sql, [id, token]).then ->
    return id + '_' + token

