jcoglan / restore

Simple remoteStorage server written in Node.js
294 stars 27 forks source link

Initial user signup #16

Closed clark800 closed 9 years ago

clark800 commented 10 years ago

It would be convenient if there was an option to allow user signup only if no users exist. Then I could do the initial user registration through the website and not have to worry about other users registering afterwards.

jcoglan commented 9 years ago

I don't feel great about adding an option like this since it makes the behaviour implicit and non-obvious, and allows race conditions. I think the user should opt in explicitly to allowing sign-ups on their server, and I should document that as you suggested in https://github.com/jcoglan/restore/issues/18.