feat: Update the external database view to hide the password

This commit is contained in:
Marius
2024-06-07 12:57:46 +02:00
parent b312b1d7e0
commit 65254f1686
5 changed files with 5 additions and 5 deletions

View File

@@ -79,7 +79,7 @@ export const ShowExternalRedisCredentials = ({ redisId }: Props) => {
const hostname = window.location.hostname;
const port = form.watch("externalPort") || data?.externalPort;
return `redis://default:${data?.databasePassword}@${hostname}:${port}`;
return `redis://default:${'*'.repeat(data?.databasePassword.length)}@${hostname}:${port}`;
};
setConnectionUrl(buildConnectionUrl());