Skip to content

Commit 15e9509

Browse files
committed
feat(password): WIP
1 parent 6d465f9 commit 15e9509

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

site/src/pages/SetupPage/SetupPageView.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ import {
2222
} from "utils/formUtils";
2323
import * as Yup from "yup";
2424
import { countries } from "./countries";
25-
import { useEffect, useState } from "react";
26-
import { debounce } from "lodash";
25+
import { useEffect } from "react";
2726

2827
export const Language = {
2928
emailLabel: "Email",
@@ -56,8 +55,7 @@ const validationSchema = Yup.object({
5655
.trim()
5756
.email(Language.emailInvalid)
5857
.required(Language.emailRequired),
59-
password: Yup.string()
60-
.required(Language.passwordRequired),
58+
password: Yup.string().required(Language.passwordRequired),
6159
username: nameValidator(Language.usernameLabel),
6260
trial: Yup.bool(),
6361
trial_info: Yup.object().when("trial", {
@@ -185,7 +183,6 @@ export const SetupPageView: FC<SetupPageViewProps> = ({
185183
id="password"
186184
label={Language.passwordLabel}
187185
type="password"
188-
error={!passwordIsValid} // Show error if password is invalid
189186
helperText={!passwordIsValid ? "Password is not strong enough." : ""} // Provide feedback
190187
/>
191188
<label

0 commit comments

Comments
 (0)