spoletto/billr — Issue #18: Merge account objects when appropriate.
Author: spoletto
Created: 2011-11-23 02:21:40+00:00
State: open

link_fb: What if there's another user in the database with my fb_id?
- If transactions > 0:
- Copy all transactions into the logged in user object.
- Send a response indicating the merge happened.

register: What if there's another user in the database with my email_address?
- Take the existing object.
- Modify its first name, last name and password to provided POST data.
- Set implied_creation to False.
- If transactions > 0:
- Send a response indicating the merge happened.
- "We've automatically moved pre-existing transactions into your account."

All user fields:
"email_address"
"first_name"
"last_name"
"password"
"fb_id"
"photo"
"transactions" : [],
"friends" : [],
"implied_creation" : True|False
"fb_access_token"