code: def request_password_reset(self, user, base_url):
          
          user.generate_password_link()
          db.session.add(user)
          db.session.commit()
          events.password_change_requested_event.send(user)
          self.send_password_change_message(user, base_url)
docs: Regenerate password link and send message