@property
    def can_reset_password(self):
        return not (self.passwordless or self.password_managed_external)
You can either override this property or leave the default
dataset/ETHPy150Open mitsuhiko/solace/solace/auth.py/AuthSystemBase.can_reset_password