Commit Β·
0b49790
1
Parent(s): 7a6978d
debug 1
Browse files29 unmodified lines303132333435363730 unmodified lines6869707172737498 unmodified lines17317417517617717817919 unmodified lines19920020120220320429 unmodified linessetError('Username must be at least 4 characters');return false;}if (password.length <= 8) {setError('Password must be longer than 8 characters');return false;}if (password !== confirmPassword) {30 unmodified linesconst checkPassword = (value) => {setPassword(value);setPasswordValid(value.length > 8);};const checkPasswordsMatch = (value) => {98 unmodified lines{usernameValid ? 'β Username must be at least 4 characters' : 'β Username must be at least 4 characters'}</li><li style={{ color: passwordValid ? 'green' : 'red' }}>{passwordValid ? 'β Password must be longer than 8 characters' : 'β Password must be longer than 8 characters'}</li><li style={{ color: passwordsMatch ? 'green' : 'red' }}>{passwordsMatch ? 'β Passwords match' : 'β Passwords do not match'}19 unmodified lines);};const inputContainerStyle = {display: 'flex',flexDirection: 'column',29 unmodified lines303132333435363730 unmodified lines6869707172737498 unmodified lines17317417517617717817919 unmodified lines19920020120220320420529 unmodified linessetError('Username must be at least 4 characters');return false;}if (password.length < 8) { // Password must be at least 8 characters longsetError('Password must be at least 8 characters');return false;}if (password !== confirmPassword) {30 unmodified linesconst checkPassword = (value) => {setPassword(value);setPasswordValid(value.length >= 8); // Updated to check for minimum 8 characters};const checkPasswordsMatch = (value) => {98 unmodified lines{usernameValid ? 'β Username must be at least 4 characters' : 'β Username must be at least 4 characters'}</li><li style={{ color: passwordValid ? 'green' : 'red' }}>{passwordValid ? 'β Password must be at least 8 characters' : 'β Password must be at least 8 characters'}</li><li style={{ color: passwordsMatch ? 'green' : 'red' }}>{passwordsMatch ? 'β Passwords match' : 'β Passwords do not match'}19 unmodified lines);};// Styles (as before)const inputContainerStyle = {display: 'flex',flexDirection: 'column',
frontend/app/Auth.js+5-4