Deskripsi:
- Upload ke stroage untuk job
## Np Issuee
This commit is contained in:
2024-09-19 15:59:21 +08:00
parent 128dc98839
commit f96d80d55d
153 changed files with 1369 additions and 1200 deletions

View File

@@ -1,6 +1,6 @@
import { Login } from "@/app_modules/auth";
export default function Page() {
export default async function Page() {
return (
<>
<Login />

View File

@@ -1,8 +1,8 @@
import { Register } from "@/app_modules/auth";
import { auth_getKodeOtpById } from "@/app_modules/auth/fun/get_kode_otp_by_id";
import { auth_getCodeOtpByNumber } from "@/app_modules/auth/fun/get_kode_otp_by_id";
export default async function Page({ params }: { params: { id: string } }) {
let otpId = params.id
const dataOtp = await auth_getKodeOtpById(otpId)
let otpId = params.id;
const dataOtp = await auth_getCodeOtpByNumber({ kodeId: otpId });
return <Register dataOtp={dataOtp} />;
}

View File

@@ -1,8 +1,8 @@
import { funGetUserIdByToken } from "@/app_modules/_global/fun/get";
import { SplashScreen } from "@/app_modules/auth";
import { user_funGetOneUserId } from "@/app_modules/fun_global";
export default async function PageSplash() {
const userLoginId = await user_funGetOneUserId();
const userLoginId = await funGetUserIdByToken();
return (
<>

View File

@@ -1,12 +1,12 @@
import { Validasi } from "@/app_modules/auth";
import { auth_getKodeOtpById } from "@/app_modules/auth/fun/get_kode_otp_by_id";
import { ServerEnv } from "@/app/lib/server_env";
import { auth_getCodeOtpByNumber } from "@/app_modules/auth/fun/get_kode_otp_by_id";
import { redirect } from "next/navigation";
import { RouterAuth } from "@/app/lib/router_hipmi/router_auth";
export default async function Page({ params }: { params: { id: string } }) {
let nomor = params.id;
const dataOtp = await auth_getKodeOtpById({nomor: nomor});
let kodeId = params.id;
const dataOtp = await auth_getCodeOtpByNumber({ kodeId: kodeId });
if (dataOtp === null) return redirect(RouterAuth.login);
return <Validasi dataOtp={dataOtp} />;
}