Spaces:
Sleeping
Sleeping
Upload 10 files
Browse files- controller/authController.js +1 -2
- utils/authCookies.js +1 -2
controller/authController.js
CHANGED
|
@@ -963,9 +963,8 @@ export const createTenantOwner = async (req, res) => {
|
|
| 963 |
|
| 964 |
await owner.populate("tenant");
|
| 965 |
|
| 966 |
-
const loginUrl = `${(process.env.FRONTEND_URL || "http://localhost:5173").replace(/\/$/, "")}
|
| 967 |
const onboarding = buildTenantCredentialsWhatsApp({
|
| 968 |
-
companyName: tenant.name,
|
| 969 |
ownerName,
|
| 970 |
username,
|
| 971 |
temporaryPassword: password,
|
|
|
|
| 963 |
|
| 964 |
await owner.populate("tenant");
|
| 965 |
|
| 966 |
+
const loginUrl = `${(process.env.FRONTEND_URL || "http://localhost:5173").replace(/\/$/, "")}`;
|
| 967 |
const onboarding = buildTenantCredentialsWhatsApp({
|
|
|
|
| 968 |
ownerName,
|
| 969 |
username,
|
| 970 |
temporaryPassword: password,
|
utils/authCookies.js
CHANGED
|
@@ -51,7 +51,6 @@ export const toSlug = (value = "") =>
|
|
| 51 |
.replace(/-{2,}/g, "-");
|
| 52 |
|
| 53 |
export const buildTenantCredentialsWhatsApp = ({
|
| 54 |
-
companyName,
|
| 55 |
ownerName,
|
| 56 |
username,
|
| 57 |
temporaryPassword,
|
|
@@ -59,7 +58,7 @@ export const buildTenantCredentialsWhatsApp = ({
|
|
| 59 |
}) => {
|
| 60 |
const message = [
|
| 61 |
`مرحباً ${ownerName || "صاحب النشاط"}`,
|
| 62 |
-
`تم إنشاء حساب نشاطك التجاري على منصة
|
| 63 |
`اسم المستخدم: ${username}`,
|
| 64 |
`كلمة المرور المؤقتة: ${temporaryPassword}`,
|
| 65 |
`رابط الدخول: ${loginUrl}`,
|
|
|
|
| 51 |
.replace(/-{2,}/g, "-");
|
| 52 |
|
| 53 |
export const buildTenantCredentialsWhatsApp = ({
|
|
|
|
| 54 |
ownerName,
|
| 55 |
username,
|
| 56 |
temporaryPassword,
|
|
|
|
| 58 |
}) => {
|
| 59 |
const message = [
|
| 60 |
`مرحباً ${ownerName || "صاحب النشاط"}`,
|
| 61 |
+
`تم إنشاء حساب نشاطك التجاري على منصة دفترى.`,
|
| 62 |
`اسم المستخدم: ${username}`,
|
| 63 |
`كلمة المرور المؤقتة: ${temporaryPassword}`,
|
| 64 |
`رابط الدخول: ${loginUrl}`,
|