mirror of
				https://github.com/aykhans/slash-e.git
				synced 2025-11-04 10:49:58 +00:00 
			
		
		
		
	chore: update demo seed data
This commit is contained in:
		@@ -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>) => {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user