Skip to content

Commit b2df123

Browse files
authored
Merge pull request swagger-api#2156 from drewish/optional-basic-auth-password
Don't require a password
2 parents 613d309 + e0d2fcf commit b2df123

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/javascript/view/BasicAuthView.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,5 @@ SwaggerUi.Views.BasicAuthView = Backbone.View.extend({
4848
if (!this.model.get('username')) {
4949
this.$(this.selectors.usernameInput).addClass(this.cls.error);
5050
}
51-
52-
if (!this.model.get('password')) {
53-
this.$(this.selectors.passwordInput).addClass(this.cls.error);
54-
}
5551
}
56-
});
52+
});

0 commit comments

Comments
 (0)