+
openDeleteModal(qr_id)}>
} href={''} text={'Account löschen'}/>
}
diff --git a/src/services/PhpApi.ts b/src/services/PhpApi.ts
index b3fbaf2..164b09a 100644
--- a/src/services/PhpApi.ts
+++ b/src/services/PhpApi.ts
@@ -299,6 +299,21 @@ export const wantNewPw = async ({email}:{email: string}) =>
}
}
+export const deleteProfil = async ({qr_id}:{qr_id: string}) =>
+{
+ try
+ {
+ const {data} = await Axios.post('deleteProfil.php', {qr_id});
+ console.log('Api deleteProfil');
+ console.log(data);
+ return data;
+ }
+ catch(err)
+ {
+ return {success:0, message:'Password Request Server Error!'};
+ }
+}
+
// export const sleep = (ms: number) =>
// {