diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 1109d6d..531ce71 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -4,28 +4,35 @@ --- ### Related Issue + -Closes # + +- Issue Closes: # --- ### Description + --- ### How Has This Been Tested? + --- ### Screenshots (if applicable) + --- ### Type of Change + + - [ ] Bug fix - [ ] New feature - [ ] Code style update diff --git a/.github/workflows/pr_raise.yml b/.github/workflows/pr_raise.yml index b94eb1b..638e1cd 100644 --- a/.github/workflows/pr_raise.yml +++ b/.github/workflows/pr_raise.yml @@ -18,7 +18,7 @@ jobs: run: | COMMENT=$(cat < data.password === data.confirmPassword, { + message: "Passwords do not match.", + path: ["confirmPassword"], + }); export const loginSchema = z.object({ username: z.string().min(3, { diff --git a/client/src/pages/Signup.tsx b/client/src/pages/Signup.tsx index 3e9f0f4..3841f8a 100644 --- a/client/src/pages/Signup.tsx +++ b/client/src/pages/Signup.tsx @@ -27,7 +27,7 @@ import toast from "react-hot-toast"; import axios from "axios"; import { SERVER_URL } from "@/lib/utils"; import { useState } from "react"; -import { Loader2 } from "lucide-react"; +import { Loader2, Eye, EyeOff } from "lucide-react"; import { useTranslation } from "react-i18next"; import transition from "@/components/transition"; @@ -35,6 +35,7 @@ function SignupPage() { const navigate = useNavigate(); const { t } = useTranslation(); const [loading, setLoading] = useState(false); + const [showPassword, setShowPassword] = useState(false); const form = useForm>({ resolver: zodResolver(signupSchema), defaultValues: { @@ -42,6 +43,7 @@ function SignupPage() { email: "", name: "", password: "", + confirmPassword: "", }, }); @@ -136,7 +138,39 @@ function SignupPage() { {t("auth.password")} - +
+ + +
+
+ + +
+ )} + /> + ( + + Confirm {t("auth.password")} + +