mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-07-05 00:18:22 +00:00
Enhance user verification and data validation features
- Updated `next.config.ts` to include remote image patterns for user verification. - Introduced `VerifyUserDetails` function in `lib/person.ts` to validate user data against national records. - Added `usePerson` hook for fetching national data based on ID card. - Enhanced `signup` and `signin` functions in `auth-actions.ts` to handle user verification status and send notifications for pending verifications. - Refactored `VerifyUser` function in `user-actions.ts` to incorporate national data validation. - Improved UI components in the user verification page to display both database and national information. - Updated `InputReadOnly` component to support customizable label classes for better styling. These changes improve the user verification process, ensuring data integrity and enhancing the overall user experience.
This commit is contained in:
@ -1,25 +1,4 @@
|
||||
"use server";
|
||||
// const raw = {
|
||||
// group_settings_id: "",
|
||||
// address1: "",
|
||||
// city: "F",
|
||||
// state: "Dharanboodhoo",
|
||||
// postal_code: "12040",
|
||||
// country_id: "462",
|
||||
// address2: "Skyvilla",
|
||||
// contacts: [
|
||||
// {
|
||||
// first_name: "Abdulla",
|
||||
// last_name: "Aidhaan",
|
||||
// email: "",
|
||||
// phone: "778-0588",
|
||||
// send_email: false,
|
||||
// custom_value1: "1971-02-24",
|
||||
// custom_value2: "A265117",
|
||||
// custom_value3: "",
|
||||
// },
|
||||
// ],
|
||||
// };
|
||||
|
||||
type CreateClientProps = {
|
||||
group_settings_id: string;
|
||||
|
Reference in New Issue
Block a user