treflehq / trefle-api

🍀 Trefle is a botanical JSON REST API for plants species, allowing you to search and query over all the registered species, and build the next gardening apps and farming robots.
https://trefle.io
GNU Affero General Public License v3.0
476 stars 50 forks source link

Add ability to reset token #74

Closed lachieh closed 1 year ago

lachieh commented 3 years ago

Problem As far as I can tell, there is no current implementation of the regenerate_token method on the user model. This means that there is no way for a user to reset their token.

Solution It would be good to have a 'reset token' button on the User Account page, so that a user can reset their token if it is compromised in any way.