RITcraft / TradingPost

A Minecraft web-based trading post to help people buy and sell items on a server.
Mozilla Public License 2.0
0 stars 4 forks source link

Reset someone's password #7

Open jwflory opened 7 years ago

jwflory commented 7 years ago

Summary

If a user forgets their password, there is no easy way for the user or an administrator to reset their password.

Analysis

As we discovered earlier today, it would be extremely helpful for there to be a simple and easy way for users to reset their password if they forget it. This could be done by the user in-game (e.g. /tradepost resetpassword) or could be triggered by an administrator on request. However, the former method would likely be preferred (or could just be controlled by a permission node).

Expected behavior

  1. User forgets password
  2. User types /tradepost resetpassword
  3. User is prompted to confirm if this is really what they want to do, and if yes, prompt for new password
  4. Update database to replace their password
  5. PROFIT!
BenWoodworth commented 7 years ago

Could you have a /tradepost password command that can set the password the first time, and update/reset the password the next times it's used?