mirror of
https://github.com/quay/quay.git
synced 2026-01-26 06:21:37 +03:00
[redhat-3.16] fix(web): use single quotes in container login commands (PROJQUAY-9683) (#4447)
fix(web): use single quotes in container login commands (PROJQUAY-9683) Application token and robot token credentials modals were using double quotes in podman/docker login commands, causing authentication failures. Changed to single quotes to match current UI behavior and ensure CLI compatibility. Signed-off-by: Brady Pratt <bpratt@redhat.com> Co-authored-by: Brady Pratt <bpratt@redhat.com> Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
committed by
GitHub
parent
80633214ce
commit
821baa4d5c
@@ -38,7 +38,7 @@ export default function ApplicationTokenCredentials({
|
||||
};
|
||||
|
||||
const getContainerLoginCommand = (runtime: 'docker' | 'podman') => {
|
||||
return `${runtime} login -u="$app" -p="${token?.token_code}" ${getServerHostname()}`;
|
||||
return `${runtime} login -u='$app' -p='${token?.token_code}' ${getServerHostname()}`;
|
||||
};
|
||||
|
||||
const kubernetesYaml = useMemo(() => {
|
||||
|
||||
@@ -378,11 +378,11 @@ export default function RobotTokensModal(props: RobotTokensModalProps) {
|
||||
isReadOnly
|
||||
id="podman-login"
|
||||
>
|
||||
{'podman login -u="' +
|
||||
{"podman login -u='" +
|
||||
tokenData.name +
|
||||
'" -p="' +
|
||||
"' -p='" +
|
||||
tokenData.token +
|
||||
'" ' +
|
||||
"' " +
|
||||
domain}
|
||||
</ClipboardCopy>
|
||||
</TextContent>
|
||||
@@ -410,11 +410,11 @@ export default function RobotTokensModal(props: RobotTokensModalProps) {
|
||||
isReadOnly
|
||||
id="docker login"
|
||||
>
|
||||
{'docker login -u="' +
|
||||
{"docker login -u='" +
|
||||
tokenData.name +
|
||||
'" -p="' +
|
||||
"' -p='" +
|
||||
tokenData.token +
|
||||
'" ' +
|
||||
"' " +
|
||||
domain}
|
||||
</ClipboardCopy>
|
||||
</TextContent>
|
||||
|
||||
Reference in New Issue
Block a user