removed console.log
This commit is contained in:
@@ -34,8 +34,8 @@ export const AppointmentModal = ({
|
||||
const participantTableRef = useRef<PaginatedTableRef>(null);
|
||||
|
||||
return (
|
||||
<dialog ref={ref} className="modal ">
|
||||
<div className="modal-box min-w-[900px] min-h-[500px]">
|
||||
<dialog ref={ref} className="modal">
|
||||
<div className="modal-box min-h-[500px] min-w-[900px]">
|
||||
<form method="dialog">
|
||||
{/* if there is a button in form, it will close the modal */}
|
||||
<button
|
||||
@@ -55,8 +55,8 @@ export const AppointmentModal = ({
|
||||
})}
|
||||
className="flex flex-col"
|
||||
>
|
||||
<div className="flex justify-between mr-7">
|
||||
<h3 className="font-bold text-lg">Termin {appointmentForm.watch("id")}</h3>
|
||||
<div className="mr-7 flex justify-between">
|
||||
<h3 className="text-lg font-bold">Termin {appointmentForm.watch("id")}</h3>
|
||||
<DateInput
|
||||
value={new Date(appointmentForm.watch("appointmentDate") || Date.now())}
|
||||
onChange={(date) => appointmentForm.setValue("appointmentDate", date)}
|
||||
@@ -121,11 +121,6 @@ export const AppointmentModal = ({
|
||||
attended: true,
|
||||
appointmentCancelled: false,
|
||||
});
|
||||
console.log(
|
||||
"Participant attended",
|
||||
event.finisherMoodleCourseId,
|
||||
!event.finisherMoodleCourseId?.length,
|
||||
);
|
||||
if (!event.finisherMoodleCourseId?.length) {
|
||||
toast(
|
||||
"Teilnehmer hat das event abgeschlossen, workflow ausgeführt",
|
||||
|
||||
@@ -13,10 +13,8 @@ export default function Page() {
|
||||
|
||||
const verifyCode = useCallback(
|
||||
async (code: string) => {
|
||||
console.log("Verifying code:", code);
|
||||
if (!code) return;
|
||||
const res = await checkEmailCode(code);
|
||||
console.log("Verification response:", res);
|
||||
if (res.error) {
|
||||
console.log("Verification error:", res.error);
|
||||
toast.error(res.error);
|
||||
@@ -34,12 +32,12 @@ export default function Page() {
|
||||
}, [paramsCode, verifyCode]);
|
||||
|
||||
return (
|
||||
<div className="card bg-base-200 shadow-xl mb-4 ">
|
||||
<div className="card bg-base-200 mb-4 shadow-xl">
|
||||
<div className="card-body">
|
||||
<p className="text-2xl font-semibold text-left flex items-center gap-2">
|
||||
<Check className="w-5 h-5" /> E-Mail Bestätigung
|
||||
<p className="flex items-center gap-2 text-left text-2xl font-semibold">
|
||||
<Check className="h-5 w-5" /> E-Mail Bestätigung
|
||||
</p>
|
||||
<div className="flex justify-center gap-3 w-full">
|
||||
<div className="flex w-full justify-center gap-3">
|
||||
<input
|
||||
className="input flex-1"
|
||||
placeholder="Bestätigungscode"
|
||||
|
||||
@@ -21,13 +21,8 @@ export const options: AuthOptions = {
|
||||
where: { email: credentials.email },
|
||||
});
|
||||
const v1User = (oldUser as OldUser[]).find((u) => u.email === credentials.email);
|
||||
console.log("V1 User", v1User?.publicId);
|
||||
if (!user && v1User) {
|
||||
if (bcrypt.compareSync(credentials.password, v1User.password)) {
|
||||
console.log(
|
||||
"v1 User Passwords match:",
|
||||
bcrypt.compareSync(credentials.password, v1User.password),
|
||||
);
|
||||
const newUser = await createNewUserFromOld(v1User);
|
||||
await sendVerificationLink(newUser.id);
|
||||
return newUser;
|
||||
|
||||
Reference in New Issue
Block a user