colinskow / superlogin

Powerful authentication for APIs and single page apps using the CouchDB ecosystem which supports a variety of providers.
MIT License
370 stars 116 forks source link

Forgot Password function #206

Open mqtik opened 5 years ago

mqtik commented 5 years ago

I have working a login & signup, nothing too fancy. For this I'm using PouchDB & PouchDB-Authentication

Such system lacks of some important functions, like Forgot Password.

How do you handle the _users when setting a new password, and more importantly, how do you set the password in the _users table?

I know it's SHA-256 encoded, but I don't know how can I set a new one.

Please help