Skip to content

Commit

Permalink
improvement: do not require basic password in UI (#5812)
Browse files Browse the repository at this point in the history
* 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 <kyle.shockey1@gmail.com>
  • Loading branch information
Simran-B and shockey authored Mar 22, 2020
1 parent 7178916 commit 95e72e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/core/components/auth/basic-auth.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ export default class BasicAuth extends React.Component {
<label>Password:</label>
{
username ? <code> ****** </code>
: <Col><Input required="required"
autoComplete="new-password"
: <Col><Input autoComplete="new-password"
name="password"
type="password"
onChange={ this.onChange }/></Col>
Expand Down
3 changes: 1 addition & 2 deletions src/core/plugins/oas3/components/http-auth.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ export default class HttpAuth extends React.Component {
<label>Password:</label>
{
username ? <code> ****** </code>
: <Col><Input required="required"
autoComplete="new-password"
: <Col><Input autoComplete="new-password"
name="password"
type="password"
onChange={ this.onChange }/></Col>
Expand Down

0 comments on commit 95e72e7

Please sign in to comment.