diff --git a/src/bk-user/bkuser/apis/web/password/views.py b/src/bk-user/bkuser/apis/web/password/views.py index a2343a2f7..847b837cb 100644 --- a/src/bk-user/bkuser/apis/web/password/views.py +++ b/src/bk-user/bkuser/apis/web/password/views.py @@ -233,6 +233,7 @@ class ListUsersByResetPasswordTokenApi(generics.ListAPIView): # 豁免认证 & 权限 authentication_classes: List[BaseAuthentication] = [] permission_classes: List[BasePermission] = [] + pagination_class = None @swagger_auto_schema( tags=["password"], diff --git a/src/bk-user/bkuser/settings.py b/src/bk-user/bkuser/settings.py index 0b14219f8..b035fe6e0 100644 --- a/src/bk-user/bkuser/settings.py +++ b/src/bk-user/bkuser/settings.py @@ -311,8 +311,7 @@ "SOCKET_CONNECT_TIMEOUT": 5, # 连接建立后的读写操作超时设置,单位秒 "SOCKET_TIMEOUT": 5, - # redis 只作为缓存使用, 触发异常不能影响正常逻辑,可能只是稍微慢点而已 - "IGNORE_EXCEPTIONS": True, + "IGNORE_EXCEPTIONS": False, # 默认使用 pickle 序列化数据,可选序列化方式有:pickle、json、msgpack # "SERIALIZER": "django_redis.serializers.pickle.PickleSerializer" # Redis 连接池配置