mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-18 21:19:44 +00:00
chore: update demo seed data
This commit is contained in:
parent
53c1d8fa91
commit
1418fc2209
@ -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
|
||||||
|
@ -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>) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user