From 1418fc22098763a6b3ace806ce681f22357f0fd3 Mon Sep 17 00:00:00 2001 From: Steven Date: Sat, 22 Jul 2023 11:43:58 +0800 Subject: [PATCH] chore: update demo seed data --- store/db/seed/10001__user.sql | 3 +-- web/src/pages/SignIn.tsx | 10 +--------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/store/db/seed/10001__user.sql b/store/db/seed/10001__user.sql index 6c55b5c..dc9e1ac 100644 --- a/store/db/seed/10001__user.sql +++ b/store/db/seed/10001__user.sql @@ -12,8 +12,7 @@ VALUES 'ADMIN', 'slash@stevenlgtm.com', 'Slasher', - -- raw password: secret - '$2a$14$ajq8Q7fbtFRQvXpdCq7Jcuy.Rx1h/L4J60Otx.gyNLbAYctGMJ9tK' + '$2a$10$H8HBWGcG/hoePhFy5SiNKOHxMD6omIpyEEWbl/fIorFC814bXW.Ua' ); INSERT INTO diff --git a/web/src/pages/SignIn.tsx b/web/src/pages/SignIn.tsx index cf33269..754d013 100644 --- a/web/src/pages/SignIn.tsx +++ b/web/src/pages/SignIn.tsx @@ -11,10 +11,7 @@ const SignIn: React.FC = () => { const navigate = useNavigate(); const userStore = useUserStore(); const { - workspaceProfile: { - disallowSignUp, - profile: { mode }, - }, + workspaceProfile: { disallowSignUp }, } = useAppSelector((state) => state.global); const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); @@ -27,11 +24,6 @@ const SignIn: React.FC = () => { replace: true, }); } - - if (mode === "demo") { - setEmail("slash@stevenlgtm.com"); - setPassword("secret"); - } }, []); const handleEmailInputChanged = (e: React.ChangeEvent) => {