I went through the demo for the couchchat and I found that it requires a Persona login/signup and once verified the sync_gateway creates the _user. Is there a way to create a _user via the sync function or something similar? I was hoping to get around making a separate script server side to create users.
On Monday, May 19, 2014 10:25:36 AM UTC-7, J. Chris Anderson wrote: > > > > On Monday, May 19, 2014 9:07:52 AM UTC-7, Joel Saltzman wrote: >> >> I'm looking to allow users to create their own accounts and have private >> access to only their content in the database. e.g. I don't want user A to >> sync any of user B's info. The easiest example I can think of is github >> users and repos. I understand that I should add to _users and create >> channels for each user. >> >> Is there a way to do this through couchbase lite or do I have to create a >> separate script server side (like in php or something) to modify the _users >> info? >> > > The sync function API allows you to have documents which make those sort > of changes dynamically. > > Here are the docs, we are working on more tutorials: > http://docs.couchbase.com/sync-gateway/#sync-gateway-apis > > Chris > -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/17e989ec-6749-4c39-9b9e-78e2ba6613bb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
