chore: update demo seed data

This commit is contained in:
Steven 2023-07-22 11:43:58 +08:00
parent 53c1d8fa91
commit 1418fc2209
2 changed files with 2 additions and 11 deletions

View File

@ -12,8 +12,7 @@ VALUES
'ADMIN', 'ADMIN',
'slash@stevenlgtm.com', 'slash@stevenlgtm.com',
'Slasher', 'Slasher',
-- raw password: secret '$2a$10$H8HBWGcG/hoePhFy5SiNKOHxMD6omIpyEEWbl/fIorFC814bXW.Ua'
'$2a$14$ajq8Q7fbtFRQvXpdCq7Jcuy.Rx1h/L4J60Otx.gyNLbAYctGMJ9tK'
); );
INSERT INTO INSERT INTO

View File

@ -11,10 +11,7 @@ const SignIn: React.FC = () => {
const navigate = useNavigate(); const navigate = useNavigate();
const userStore = useUserStore(); const userStore = useUserStore();
const { const {
workspaceProfile: { workspaceProfile: { disallowSignUp },
disallowSignUp,
profile: { mode },
},
} = useAppSelector((state) => state.global); } = useAppSelector((state) => state.global);
const [email, setEmail] = useState(""); const [email, setEmail] = useState("");
const [password, setPassword] = useState(""); const [password, setPassword] = useState("");
@ -27,11 +24,6 @@ const SignIn: React.FC = () => {
replace: true, replace: true,
}); });
} }
if (mode === "demo") {
setEmail("slash@stevenlgtm.com");
setPassword("secret");
}
}, []); }, []);
const handleEmailInputChanged = (e: React.ChangeEvent<HTMLInputElement>) => { const handleEmailInputChanged = (e: React.ChangeEvent<HTMLInputElement>) => {