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',
'slash@stevenlgtm.com',
'Slasher',
-- raw password: secret
'$2a$14$ajq8Q7fbtFRQvXpdCq7Jcuy.Rx1h/L4J60Otx.gyNLbAYctGMJ9tK'
'$2a$10$H8HBWGcG/hoePhFy5SiNKOHxMD6omIpyEEWbl/fIorFC814bXW.Ua'
);
INSERT INTO

View File

@ -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<HTMLInputElement>) => {