bikelomatic-complexity / btc-app-server

Api server for the Bicycle Touring Companion
GNU Affero General Public License v3.0
0 stars 2 forks source link

Connect register and authentication logic #25

Closed stevekroh closed 8 years ago

stevekroh commented 8 years ago

Fixes _users document overwrite issue.

Before, we were 'patching' documents into PouchDB, which PouchDB does not support. On document update, you have to supply the document exactly as you want it to look. This was deleting the user's password hash.