ushahidi/riverid — Issue #9: Tie Users to Sites
Author: brianherbert
Created: 2012-01-23 11:19:37+00:00
State: open

I'm not sure how this works in Mongo but we should create a table of unique URLs with unique IDs. We want to only store the URLs one time in case they are updated. Then, we will tie those IDs to user accounts. Methods below.

Also, for "addusertosite", do we need to include the session_id to prevent unauthorized adding of sites to users?

Docs for this method should read:

### addsite

#### Parameters

* `url` The base url to the site that the user is logging on to (ie. https://brian.crowdmap.com)

### addusertosite

#### Parameters

* `user_id` The string of the 128 character user ID to be added
* `url` The url to the site that the user is logging on to