test server

This commit is contained in:
2024-04-03 17:30:04 +08:00
parent f6649fe93e
commit 00336802b2
12 changed files with 199 additions and 34 deletions

View File

@@ -5,6 +5,7 @@ import { randomOTP } from "./rondom_otp";
export async function auth_funLogin(nomor: string) {
const codeOtp = randomOTP();
console.log(nomor)
try {
const res = await fetch(

View File

@@ -21,6 +21,6 @@ export async function auth_Logout(kodeId: string) {
});
if (!del) return { status: 400, message: "Gagal Hapus Kode OTP Id"};
revalidatePath("/dev/katalog")
// revalidatePath("/dev/katalog")
return { status: 200, message: "Logout Berhasil" };
}

View File

@@ -18,6 +18,7 @@ export async function auth_funValidasi(nomor: string) {
id: true,
nomor: true,
username: true,
masterUserRoleId: true
},
});
@@ -42,5 +43,7 @@ export async function auth_funValidasi(nomor: string) {
revalidatePath(RouterHome.main_home);
}
return { status: 200, message: "Nomor Terverivikasi" };
return { status: 200, message: "Nomor Terverivikasi", role: cek.masterUserRoleId };
}