code: def get_reset_data(self, data):
          
          error = False
          reset = None
          msg = ""
          user = self.database.users.find_one({"reset": data["reset"]})
          if user is None:
              error = True
              msg = "Invalid reset hash."
          else:
              reset = {"hash": data["reset"], "username": user["username"], "realname": user["realname"]}
  
          return msg, error, reset
docs: Returns the user info to reset