Don't require a password

Fixes #2114
This commit is contained in:
andrew morton
2016-05-12 15:47:16 -06:00
parent 767a37c5d7
commit adb84595bf

View File

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