Added Account log for registration

This commit is contained in:
PxlLoewe
2026-01-30 16:56:22 +01:00
parent 2154684223
commit 10af6bf71a
3 changed files with 11 additions and 5 deletions

View File

@@ -9,6 +9,7 @@ import { useState } from "react";
import { Button } from "../../../_components/ui/Button";
import { sendVerificationLink } from "(app)/admin/user/action";
import toast from "react-hot-toast";
import { logAction } from "(auth)/login/_components/action";
export const Register = () => {
const schema = z
@@ -93,6 +94,9 @@ export const Register = () => {
return;
}
await sendVerificationLink(user.id);
await logAction("REGISTER", {
userId: user.id,
});
await signIn("credentials", {
callbackUrl: "/",
email: user.email,