Login => List of user's documents
The basic need is straightforward, the question is what kind of login do I want (cf #41 for the other major use case for logging-in users).
- Simplest: login required to remember visited documents. Should start with this, easiest to implement.
- Better (a-la writeLaTeX): when anonymous, still remember documents in localStorage (or firebase with anon auth cached in cookies/localStorage?)
- Fancy partial login: first just ask for email, send secret URL for accessing your doc list. This effectively validates email, but asynchronously — link only needed for 2nd login. If link is lost, can resend it — similar to password reset. After using secret link, can optionally set a password?
Also, should allow search.
Firepad indexing is hard, but something as dumb as loading ALL docs into the doc list page for browser search to work might be acceptable if sufficiently lightweight (just <pre> with no highlighting, load snapshot instead of firepad reconstruction...)
Should probably expose doc title in firebase, without reconstructing firepad text.
My "creative" ideas like emailing a secret link giving full access to one's docs are probably very bad, equivalent to sending passwords by email — http://plaintextoffenders.com/faq/devs