test server
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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" };
|
||||
}
|
||||
|
||||
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user