Merge pull request #2156 from drewish/optional-basic-auth-password

Don't require a password
This commit is contained in:
Ron
2016-06-10 08:10:38 -07:00
committed by GitHub

View File

@@ -48,9 +48,5 @@ SwaggerUi.Views.BasicAuthView = Backbone.View.extend({
if (!this.model.get('username')) {
this.$(this.selectors.usernameInput).addClass(this.cls.error);
}
if (!this.model.get('password')) {
this.$(this.selectors.passwordInput).addClass(this.cls.error);
}
}
});