From 95e72e7c70d55684d91085c6628aacb2ac53ad05 Mon Sep 17 00:00:00 2001 From: Simran Date: Mon, 23 Mar 2020 00:53:04 +0100 Subject: [PATCH] improvement: do not require basic password in UI (#5812) * Fix basic-auth.jsx: do not require password in UI password is not PropTypes.string.isRequired, but the markup wrongly makes it mandatory * Do not require password input in http-auth.jsx This is used by the Authorize modal. Not sure when the similar code from basic-auth.jsx is used. Co-authored-by: kyle shockey --- src/core/components/auth/basic-auth.jsx | 3 +-- src/core/plugins/oas3/components/http-auth.jsx | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/core/components/auth/basic-auth.jsx b/src/core/components/auth/basic-auth.jsx index 8d45d210..eb188715 100644 --- a/src/core/components/auth/basic-auth.jsx +++ b/src/core/components/auth/basic-auth.jsx @@ -73,8 +73,7 @@ export default class BasicAuth extends React.Component { { username ? ****** - : diff --git a/src/core/plugins/oas3/components/http-auth.jsx b/src/core/plugins/oas3/components/http-auth.jsx index 5df10ddf..5c324af0 100644 --- a/src/core/plugins/oas3/components/http-auth.jsx +++ b/src/core/plugins/oas3/components/http-auth.jsx @@ -81,8 +81,7 @@ export default class HttpAuth extends React.Component { { username ? ****** - :