From bd06ee7bf2d832751bbd36454efdf563e5c12064 Mon Sep 17 00:00:00 2001
From: MuslemRahimi
Date: Fri, 21 Jun 2024 13:06:35 +0200
Subject: [PATCH] update tos
---
src/routes/register/+page.server.ts | 12 +++++++++++-
src/routes/terms-of-use/+page.svelte | 9 +++++++++
2 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/src/routes/register/+page.server.ts b/src/routes/register/+page.server.ts
index 76623a92..c0a03328 100644
--- a/src/routes/register/+page.server.ts
+++ b/src/routes/register/+page.server.ts
@@ -3,6 +3,15 @@ import { registerUserSchema } from '$lib/schemas';
import { validateData } from '$lib/utils';
+async function checkDisposableEmail(email:string) {
+
+}const url = `https://disposable.debounce.io/?email=${encodeURIComponent(email)}`;
+ const response = await fetch(url, {
+ method: 'GET',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ });
export const actions = {
register: async ({ locals, request }) => {
@@ -14,7 +23,8 @@ export const actions = {
errors: errors.fieldErrors
});
}
-
+ console.log(formData)
+ //await checkDisposableEmail()
//let username = generateUsername(formData.name.split(' ').join('')).toLowerCase();
try {
diff --git a/src/routes/terms-of-use/+page.svelte b/src/routes/terms-of-use/+page.svelte
index 2555be86..0a205103 100644
--- a/src/routes/terms-of-use/+page.svelte
+++ b/src/routes/terms-of-use/+page.svelte
@@ -186,8 +186,17 @@
If you are not 100% satisfied with your purchase, you can get a full refund on subscription fees up to 30 days from the initial date of purchase (i.e., subscription date). After 30 days, the fees for this product are completely non-refundable. Refund requests can be made to support@stocknear.com.
+
+
+ Changes to the Price and Service Plans.
+
+
+ We may at our reasonable discretion change the price of our subscription plans from time to time to reflect the effect of changes in the total costs associated with our service. Examples of costs elements that affect the price of our subscription plans include production and licensing costs, costs for the technical provision and distribution of our service, customer service and other costs of sales (e.g., billing and payment, marketing), general administration and other overhead costs (e.g., rent, interest and other financing costs, costs of personnel, service providers and services, IT systems, energy), as well as state-imposed fees, contributions, taxes and duties. Any price changes will apply no earlier than 7 days following notice to you. You can cancel your membership at any time during the notice period to avoid future charges.
+
+
+
Termination