From 6b0d77b61882011e8ca7a9aa7076cc0631782220 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Tue, 22 Nov 2022 11:08:49 +0200 Subject: [PATCH] remove secrets from source code --- build.sh | 2 +- notes/docker.txt | 2 +- src/pages/login/Login.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index aeb0007..96adf8f 100644 --- a/build.sh +++ b/build.sh @@ -2,7 +2,7 @@ echo "Welcome!" version="1.0.1" -registryPass="***REMOVED***" +registryPass="*********" echo "Create docker image with version $version." docker image build -t "cdn-admin-frontend:$version" . diff --git a/notes/docker.txt b/notes/docker.txt index 26bf2f9..d103ab8 100644 --- a/notes/docker.txt +++ b/notes/docker.txt @@ -14,7 +14,7 @@ Push image to registry: docker tag cdn-admin-frontend:1.0.0 alpine-nexus:8500/cdn/cdn-admin-frontend:1.0.0 --login to registry -docker login --username=admin --password="***REMOVED***" alpine-nexus:8500 +docker login --username=admin --password="************" alpine-nexus:8500 --push image docker push alpine-nexus:8500/cdn/cdn-admin-frontend:1.0.0 diff --git a/src/pages/login/Login.js b/src/pages/login/Login.js index e017fd9..030201c 100644 --- a/src/pages/login/Login.js +++ b/src/pages/login/Login.js @@ -33,7 +33,7 @@ function Login(props) { var [error, setError] = useState(null); var [activeTabId, setActiveTabId] = useState(0); var [nameValue, setNameValue] = useState(""); - var [loginValue, setLoginValue] = useState(***REMOVED***); + var [loginValue, setLoginValue] = useState("admin"); var [passwordValue, setPasswordValue] = useState(""); return (