Skip to content

Commit a2aeab3

Browse files
authored
Merge pull request #168 from code0-tech/feat/#165
Remove Login password policy to accept everything
2 parents d68d92c + 9468080 commit a2aeab3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/packages/ce/src/user/pages/UserLoginPage.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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}>

0 commit comments

Comments
 (0)