Remove plugin center login without url (#1978)

This removes the "login" button for the plugin center, when the authentication url is not set.
This commit is contained in:
René Pfeuffer
2022-03-21 08:21:36 +01:00
committed by GitHub
parent 9ec38a858d
commit 4bba593714
7 changed files with 37 additions and 15 deletions

View File

@@ -263,7 +263,7 @@ public class PluginCenterAuthResource {
.toASCIIString();
builder.single(Link.link("reconnect", reconnectLink));
}
} else {
} else if (!Strings.isNullOrEmpty(configuration.getPluginAuthUrl())) {
builder.single(Link.link(METHOD_LOGIN, uriInfo.getAbsolutePathBuilder().path(METHOD_LOGIN).build().toASCIIString()));
}
}