   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]

###

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



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

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

