Fixed #2193. Changed logout click to remove basic authentication header by using the configured value as key instead of basic.

This commit is contained in:
FlaxHaxx
2016-06-07 15:34:50 +02:00
parent abcbc7b104
commit 357df79f58

View File

@@ -84,9 +84,7 @@ SwaggerUi.Views.AuthView = Backbone.View.extend({
e.preventDefault();
this.authsCollectionView.collection.forEach(function (auth) {
var name = auth.get('type') === 'basic' ? auth.get('title') : auth.get('title');
window.swaggerUi.api.clientAuthorizations.remove(name);
window.swaggerUi.api.clientAuthorizations.remove(auth.get('title'));
});
this.router.load();