-
- Continue
-
+
+
+ To complete the verification process, you should check your email inbox and look for the verification email. It may take a few minutes for the email to arrive, so be patient. Once you receive the email, open it and click on the verification link provided.
+
-
-
- Dont’t have an aceount ?
-
- Please resend
-
+
+
+ If you haven't received the verification email after a reasonable amount of time, make sure to check your spam or junk mail folder. It's also possible that the email was sent to the wrong email address, so double-check that you entered your email address correctly.
diff --git a/src/components/Helpers/Inputs/InputCom/index.jsx b/src/components/Helpers/Inputs/InputCom/index.jsx
index 9dd8efc..707d0cc 100644
--- a/src/components/Helpers/Inputs/InputCom/index.jsx
+++ b/src/components/Helpers/Inputs/InputCom/index.jsx
@@ -1,4 +1,4 @@
-import React from "react";
+import React, { useRef } from "react";
import Icons from "../../Icons";
import { Link } from "react-router-dom";
@@ -16,6 +16,53 @@ export default function InputCom({
disable,
blurHandler,
}) {
+ const inputRef = useRef(null)
+ // Entry Validation
+ // for Min Length:
+ const minLengthValidation = () => {
+ if (inputRef && inputRef?.current && inputRef?.current?.name === 'email') {
+ return 7
+ } else if (inputRef && inputRef?.current && inputRef?.current?.name === 'first_name') {
+ return 3
+ } else if (inputRef && inputRef?.current && inputRef?.current?.name === 'last_name') {
+ return 3
+ } else if (inputRef && inputRef?.current && inputRef?.current?.name === 'address') {
+ return 5
+ } else if (inputRef && inputRef?.current && inputRef?.current?.name === 'password') {
+ return 8
+ } else if (inputRef && inputRef?.current && inputRef?.current?.name === 'state') {
+ return 3
+ } else if (inputRef && inputRef?.current && inputRef?.current?.name === 'province') {
+ return 3
+ } else if (inputRef && inputRef?.current && inputRef?.current?.name === 'city') {
+ return 3
+ } else if (inputRef && inputRef?.current && inputRef?.current?.name === 'amount') {
+ return 1
+ }
+ }
+
+ // for MaxLength
+ const maxLengthValidation = () => {
+ if (inputRef && inputRef?.current && inputRef?.current?.name === 'email') {
+ return 35
+ } else if (inputRef && inputRef?.current && inputRef?.current?.name === 'first_name') {
+ return 25
+ } else if (inputRef && inputRef?.current && inputRef?.current?.name === 'last_name') {
+ return 25
+ } else if (inputRef && inputRef?.current && inputRef?.current?.name === 'address') {
+ return 49
+ } else if (inputRef && inputRef?.current && inputRef?.current?.name === 'password') {
+ return 15
+ } else if (inputRef && inputRef?.current && inputRef?.current?.name === 'state') {
+ return 25
+ } else if (inputRef && inputRef?.current && inputRef?.current?.name === 'province') {
+ return 25
+ } else if (inputRef && inputRef?.current && inputRef?.current?.name === 'city') {
+ return 25
+ } else if (inputRef && inputRef?.current && inputRef?.current?.name === 'amount') {
+ return 9
+ }
+ }
return (
@@ -38,6 +85,9 @@ export default function InputCom({
type={type}
id={name}
name={name}
+ minLength={minLengthValidation()}
+ maxLength={maxLengthValidation()}
+ ref={inputRef}
readOnly={disable}
onBlur={blurHandler}
/>
diff --git a/src/services/UsersService.js b/src/services/UsersService.js
index 944a584..b9acb87 100644
--- a/src/services/UsersService.js
+++ b/src/services/UsersService.js
@@ -298,6 +298,14 @@ class usersService {
return this.postAuxEnd("/accounttypes", postData);
}
+ verifyEmail(code) {
+ const reqData = {
+ verify_link: code,
+ action: 11015
+ }
+ return this.postAuxEnd("/verifysignuplink", reqData);
+ }
+
/*
- 20:27:30.118 FLOG_MAX [757411]: REQ_STRING(username)
- 20:27:30.118 FLOG_MAX [757411]: REQ_STRING(password)
diff --git a/src/views/VerifyLinkPages.jsx b/src/views/VerifyLinkPages.jsx
new file mode 100644
index 0000000..0d25ece
--- /dev/null
+++ b/src/views/VerifyLinkPages.jsx
@@ -0,0 +1,5 @@
+import VerifyLink from "../components/AuthPages/VerifyLink";
+
+export default function VerifyLinkPages() {
+ return ;
+}
diff --git a/yarn.lock b/yarn.lock
index ba2acfa..b8fcbb0 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -4810,11 +4810,6 @@ fs.realpath@^1.0.0:
resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"
integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==
-fsevents@^2.3.2, fsevents@~2.3.2:
- version "2.3.2"
- resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz"
- integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==
-
function-bind@^1.1.1:
version "1.1.1"
resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz"