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

  token = parseToken(token)
  return Q.reject(new Error) unless token

  sql = 'DELETE FROM user_reset WHERE user_id=? AND token=?'
  query(sql, token)



###

register_remove = (id) ->
  sql = 'DELETE FROM register WHERE id=?'
  query(sql, id)


