#Job done
## feat - Fix bug login ### No issuue
This commit is contained in:
14
src/app/dev/auth/login/layout.tsx
Normal file
14
src/app/dev/auth/login/layout.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { LayoutLogin } from "@/app_modules/auth";
|
||||
import React from "react";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
<LayoutLogin>{children}</LayoutLogin>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -3,12 +3,10 @@ import { cookies } from "next/headers";
|
||||
|
||||
export default function Page() {
|
||||
const c = cookies().getAll();
|
||||
const tkn = c;
|
||||
|
||||
return (
|
||||
<>
|
||||
{/* {JSON.stringify(tkn)} */}
|
||||
<Login />;
|
||||
<Login />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
8
src/app/dev/auth/register/[id]/page.tsx
Normal file
8
src/app/dev/auth/register/[id]/page.tsx
Normal file
@@ -0,0 +1,8 @@
|
||||
import { Register } from "@/app_modules/auth";
|
||||
import { auth_getKodeOtpById } 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)
|
||||
return <Register dataOtp={dataOtp} />;
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
import { Register } from "@/app_modules/auth";
|
||||
|
||||
export default function Page() {
|
||||
return <Register />;
|
||||
}
|
||||
9
src/app/dev/auth/validasi/[id]/page.tsx
Normal file
9
src/app/dev/auth/validasi/[id]/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Validasi } from "@/app_modules/auth";
|
||||
import { auth_getKodeOtpById } from "@/app_modules/auth/fun/get_kode_otp_by_id";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
let kodeOtpId = params.id;
|
||||
const dataOtp = await auth_getKodeOtpById(kodeOtpId);
|
||||
|
||||
return <Validasi dataOtp={dataOtp} />;
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
import { Validasi } from "@/app_modules/auth";
|
||||
|
||||
|
||||
export default function Page() {
|
||||
|
||||
return <Validasi />;
|
||||
}
|
||||
Reference in New Issue
Block a user