Fix: validasi

Deksripsi:
- Penambahan fitur kirim ulang kode
## No Issue
This commit is contained in:
2024-11-06 13:57:54 +08:00
parent 8cedf7db61
commit a6548f7b36
11 changed files with 580 additions and 484 deletions

View File

@@ -11,15 +11,15 @@ export function CheckCookies_UiLayout({
}) {
const router = useRouter();
useShallowEffect(() => {
onCheckCookies();
}, []);
// useShallowEffect(() => {
// onCheckCookies();
// }, []);
async function onCheckCookies() {
const cek = await fetch("/api/check-cookies");
const result = await cek.json();
if (result.success === false) {
router.push(RouterAuth.login);
router.push(RouterAuth.login, { scroll: false });
}
}