def METHOD_NAME(request: HttpRequest) -> bool:
    user = request.user
    if not user.is_authenticated:
        return False
    if not user.has_usable_password():
        return False
    return user_has_mfa(user)