From 68ac8ed6199cf94a669c5d7f93d494598ef819c3 Mon Sep 17 00:00:00 2001 From: andrewstech Date: Wed, 6 Sep 2023 07:18:12 +0000 Subject: [PATCH 1/2] start --- src/containers/background/index.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/containers/background/index.jsx b/src/containers/background/index.jsx index d35843e3b..4ca63cc24 100644 --- a/src/containers/background/index.jsx +++ b/src/containers/background/index.jsx @@ -148,7 +148,8 @@ export const LockScreen = (props) => {
Sign in
- {/* + @@ -165,7 +166,7 @@ export const LockScreen = (props) => { click="pinlock" payload={passType==0}/> - */} +
From 586ffeb94d645ad7fae7e604504bd793dd50947d Mon Sep 17 00:00:00 2001 From: andrewstech Date: Wed, 6 Sep 2023 07:54:05 +0000 Subject: [PATCH 2/2] push --- src/containers/background/index.jsx | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/src/containers/background/index.jsx b/src/containers/background/index.jsx index 4ca63cc24..39c47a0d4 100644 --- a/src/containers/background/index.jsx +++ b/src/containers/background/index.jsx @@ -72,8 +72,18 @@ export const LockScreen = (props) => { const [unlocked, setUnLock] = useState(false); const [password, setPass] = useState(""); const [passType, setType] = useState(1); + const queryParams = new URLSearchParams(window.location.search); const [forgot, setForget] = useState(false); const dispatch = useDispatch(); + let passEnabled = ''; + if (queryParams.get("password-enabled") == "true") { + passEnabled = false; + } else { + passEnabled = true; + } + //if (queryParams.get("setPassword")) { + //setPass(queryParams.get("setPassword")); + //} const userName = useSelector((state) => state.setting.person.name); @@ -148,23 +158,23 @@ export const LockScreen = (props) => {
Sign in
-
- +
- -
+ -
-