code: def generate_password_link(self):
          
          self.password_link = self.generate_hash(50)
          now = datetime.datetime.utcnow()
          self.password_link_expires = now + datetime.timedelta(hours=24)
docs: Generates a link to reset password