chore(release): 0.4.0

This commit is contained in:
2026-05-05 15:00:14 +07:00
parent 5948d0e2a0
commit 9dfd0295d3
22 changed files with 239 additions and 89 deletions
+7 -1
View File
@@ -33,7 +33,13 @@ export async function registerAction(formData: FormData) {
}
}
export async function acceptTermsAction() {
export async function acceptTermsAction(input: { accepted: boolean }) {
if (input?.accepted !== true) {
return {
error:
"Kamu harus mencentang persetujuan Syarat & Ketentuan dan Kebijakan Privasi",
};
}
const session = await getServerSession(authOptions);
if (!session?.user) {
return { error: "Kamu harus login terlebih dahulu" };