File tree Expand file tree Collapse file tree
src/packages/ce/src/user/pages Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,7 +40,10 @@ export const UserLoginPage: React.FC = () => {
4040 if ( ! emailValidation ( value ) ) return "Please provide a valid email"
4141 return null
4242 } ,
43- password : passwordValidation
43+ password : ( value ) => {
44+ if ( ! value ) return "Password is required"
45+ return null
46+ }
4447 } ,
4548 onSubmit : ( values ) => {
4649 if ( ! values . password || ! values . email || ! emailValidation ( values . email ) ) return
@@ -94,7 +97,6 @@ export const UserLoginPage: React.FC = () => {
9497 < EmailInput placeholder = { "Email" } { ...inputs . getInputProps ( "email" ) } />
9598 < div style = { { marginBottom : "1.3rem" } } />
9699 < PasswordInput placeholder = { "Password" }
97- onChange = { ( ) => validate ( "password" ) }
98100 { ...inputs . getInputProps ( "password" ) } />
99101 < div style = { { marginBottom : "1.3rem" } } />
100102 < Button color = { "success" } w = { "100%" } mb = { 1.3 } onClick = { validate } >
You can’t perform that action at this time.
0 commit comments