{{ !dealer ? (isVietnamese ? 'Họ và tên' : 'Full name') : isVietnamese ? 'Tên tài khoản' : 'Dealer name'
+ }}*
@@ -274,6 +275,9 @@ export default {
copy.user = this.user.id;
await this.$updaterow(this.api, copy, found.params.values, this.pagename);
} else {
+ let app = await this.$getdata('apps', { code: 'application' }, undefined, false);
+ let obj = { user: this.user.id, apps: app[0]?.id || null };
+ await this.$insertapi('userapps', obj, undefined, false);
//send email
if (this.email) {
let loginUrl = this.$mode === 'dev' ? 'https://dev.biz.utopia.com.vn/' : 'https://biz.utopia.com.vn/';
@@ -284,7 +288,8 @@ export default {
let copy = this.$copy(this.row);
copy.user = this.user.id;
await this.$updaterow('dealer', copy, null, this.pagename);
- let obj = { user: this.user.id, apps: 11 };
+ let app = await this.$getdata('apps', { code: 'dealer' }, undefined, false);
+ let obj = { user: this.user.id, apps: app[0]?.id || null };
await this.$insertapi('userapps', obj, undefined, false);
let loginUrl = this.$mode === 'dev' ? 'https://dev.dealer.utopia.com.vn/' : 'https://dealer.utopia.com.vn/';
await this.templateEmail(loginUrl);
@@ -346,7 +351,7 @@ export default {
- © ${new Date().getFullYear()} Utopia. All rights reserved.
+ © ${new Date().getFullYear()} Utopia Villas & Resort. All rights reserved.
Đây là email tự động, vui lòng không phản hồi email này.
diff --git a/components/user/ResetPassword.vue b/components/user/ResetPassword.vue
index 8d96c1f..ad052dd 100644
--- a/components/user/ResetPassword.vue
+++ b/components/user/ResetPassword.vue
@@ -162,7 +162,7 @@ async function sendEmailAlter(loginUrl, fullname, username, password, email, dea
- © ${new Date().getFullYear()} Utopia. All rights reserved.
+ © ${new Date().getFullYear()} Utopia Villas & Resort. All rights reserved.
Đây là email tự động, vui lòng không phản hồi email này.
+ © ${new Date().getFullYear()} Utopia Villas & Resort. All rights reserved.
Đây là email tự động, vui lòng không phản hồi email này.
+ © ${new Date().getFullYear()} Utopia Villas & Resort. All rights reserved.
Đây là email tự động, vui lòng không phản hồi email này.