root: fix useless supressions
This commit is contained in:
parent
1248585dca
commit
93bf8eaa82
|
@ -108,7 +108,6 @@ class ProxyOutpostConfigSerializer(ModelSerializer):
|
||||||
@swagger_serializer_method(serializer_or_field=OpenIDConnectConfigurationSerializer)
|
@swagger_serializer_method(serializer_or_field=OpenIDConnectConfigurationSerializer)
|
||||||
def get_oidc_configuration(self, obj: ProxyProvider):
|
def get_oidc_configuration(self, obj: ProxyProvider):
|
||||||
"""Embed OpenID Connect provider information"""
|
"""Embed OpenID Connect provider information"""
|
||||||
# pylint: disable=protected-access
|
|
||||||
return ProviderInfoView(request=self.context["request"]._request).get_info(obj)
|
return ProviderInfoView(request=self.context["request"]._request).get_info(obj)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -112,7 +112,6 @@ class PasswordStageView(FormView, StageView):
|
||||||
# No user was found -> invalid credentials
|
# No user was found -> invalid credentials
|
||||||
LOGGER.debug("Invalid credentials")
|
LOGGER.debug("Invalid credentials")
|
||||||
# Manually inject error into form
|
# Manually inject error into form
|
||||||
# pylint: disable=protected-access
|
|
||||||
errors = form._errors.setdefault("password", ErrorList())
|
errors = form._errors.setdefault("password", ErrorList())
|
||||||
errors.append(_("Invalid password"))
|
errors.append(_("Invalid password"))
|
||||||
return self.form_invalid(form)
|
return self.form_invalid(form)
|
||||||
|
|
Reference in a new issue