mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-04-20 03:50:20 +00:00
feat: add example environment configuration file and update .gitignore to include .env files
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m35s
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m35s
This commit is contained in:
parent
c7993620f5
commit
378c120035
23
.env.example
Normal file
23
.env.example
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# next auth
|
||||||
|
NEXTAUTH_SECRET=""
|
||||||
|
NEXTAUTH_URL=""
|
||||||
|
## Portal API
|
||||||
|
SARLINK_API_BASE_URL=""
|
||||||
|
|
||||||
|
|
||||||
|
## MIB Payments
|
||||||
|
PAYMENT_VERIFY_BASE_URL=""
|
||||||
|
|
||||||
|
## People
|
||||||
|
PEOPLE_API_URL=""
|
||||||
|
|
||||||
|
## SMS
|
||||||
|
SMS_API_URL=""
|
||||||
|
SMS_API_KEY=""
|
||||||
|
|
||||||
|
## omada
|
||||||
|
OMADA_BASE_URL=""
|
||||||
|
OMADA_SITE_ID=
|
||||||
|
OMADA_GROUP_ID=
|
||||||
|
OMADA_PROXY_API_KEY=""
|
||||||
|
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -30,7 +30,9 @@ yarn-debug.log*
|
|||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
|
|
||||||
# env files (can opt-in for committing if needed)
|
# env files (can opt-in for committing if needed)
|
||||||
.env*
|
.env
|
||||||
|
.env.local
|
||||||
|
|
||||||
|
|
||||||
# vercel
|
# vercel
|
||||||
.vercel
|
.vercel
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
"use server";
|
"use server";
|
||||||
import type { TNationalPerson } from "@/lib/types";
|
import type { TNationalPerson } from "@/lib/types";
|
||||||
import { User } from "./types/user";
|
import type { User } from "./types/user";
|
||||||
|
|
||||||
export async function getNationalPerson({
|
export async function getNationalPerson({
|
||||||
idCard,
|
idCard,
|
||||||
@ -18,7 +18,7 @@ export async function getNationalPerson({
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function VerifyUserDetails({ user }: { user: User }) {
|
export async function VerifyUserDetails({ user }: { user: User }) {
|
||||||
console.log(user)
|
console.log(user);
|
||||||
// const phoneNumber = String(user.phoneNumber).slice(4);
|
// const phoneNumber = String(user.phoneNumber).slice(4);
|
||||||
// console.log({ phoneNumber });
|
// console.log({ phoneNumber });
|
||||||
// const nationalData = await getNationalPerson({ idCard: user.id_card ?? "" });
|
// const nationalData = await getNationalPerson({ idCard: user.id_card ?? "" });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user