Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature 4/h captcha support with auth pages #8

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ZAFIRKHAN824
Copy link

@ZAFIRKHAN824 ZAFIRKHAN824 commented Feb 14, 2025

  • forgot and reset page
  • hCaptcha in forgotPassword

Resolves #4

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use kebab case for file naming

import { MailOutlined } from "@ant-design/icons";
import HCaptcha from "@hcaptcha/react-hcaptcha";

type FormValues = {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move this in auth module types and export it to be use where its need


return (
<div>
<Form<FormValues> onFinish={onFinish}>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why using this <FormValues> tag inside <Form> tag?

import React from "react";
import { useParams } from "react-router-dom";

type FormValues = {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this also move in to auth module types


return (
<div>
<Form<FormValues> onFinish={onFinish} layout="vertical">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here using <FormValues> tag as above

<Form.Item
name="otp"
label="Otp"
rules={[{ required: true, message: "Please enter a password" }]}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct message as it for otp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add hCaptcha support on relevant APIs
3 participants