Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: unified email regular verification

shuaib62289158e2c
diff --git a/ui/src/pages/Install/components/FourthStep/index.tsx b/ui/src/pages/Install/components/FourthStep/index.tsx
index 5ad77c9a..ace72da2 100644
--- a/ui/src/pages/Install/components/FourthStep/index.tsx
+++ b/ui/src/pages/Install/components/FourthStep/index.tsx
@@ -3,7 +3,7 @@ import { Form, Button } from 'react-bootstrap';
import { useTranslation } from 'react-i18next';
import type { FormDataType } from '@/common/interface';
-import Patern from '@/common/patern';
+import Pattern from '@/common/pattern';
import Progress from '../Progress';
interface Props {
@@ -55,7 +55,7 @@ const Index: FC<Props> = ({ visible, data, changeCallback, nextCallback }) => {
};
}
- if (contact_email.value && !contact_email.value.match(Patern.mail)) {
+ if (contact_email.value && !Pattern.email.test(contact_email.value)) {
bol = false;
data.contact_email = {
value: contact_email.value,
@@ -91,7 +91,7 @@ const Index: FC<Props> = ({ visible, data, changeCallback, nextCallback }) => {
};
}
- if (email.value && !email.value.match(Patern.mail)) {
+ if (email.value && !Pattern.email.test(email.value)) {
bol = false;
data.email = {
value: email.value,
diff --git a/ui/src/pages/Install/index.tsx b/ui/src/pages/Install/index.tsx
index 3f531918..15d33eca 100644
--- a/ui/src/pages/Install/index.tsx
+++ b/ui/src/pages/Install/index.tsx
@@ -23,7 +23,7 @@ import {
const Index: FC = () => {
const { t } = useTranslation('translation', { keyPrefix: 'install' });
- const [step, setStep] = useState(1);
+ const [step, setStep] = useState(4);
const [loading, setLoading] = useState(true);
const [errorData, setErrorData] = useState<{ [propName: string]: any }>({
msg: '',