Browse Source

fix(gui-v2): update invite url

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3385/head
Pranav C 2 years ago
parent
commit
fafed69339
  1. 2
      packages/nc-gui-v2/components/tabs/auth/user-management/UsersModal.vue
  2. 3
      packages/nc-gui-v2/package-lock.json
  3. 2
      packages/nocodb/src/lib/meta/api/projectUserApis.ts
  4. 2
      packages/nocodb/src/lib/v1-legacy/rest/RestAuthCtrl.ts

2
packages/nc-gui-v2/components/tabs/auth/user-management/UsersModal.vue

@ -103,7 +103,7 @@ const saveUser = async () => {
}
}
const inviteUrl = $computed(() => (usersData.invitationToken ? `${dashboardUrl}/signup/${usersData.invitationToken}` : null))
const inviteUrl = $computed(() => (usersData.invitationToken ? `${dashboardUrl}#/signup/${usersData.invitationToken}` : null))
const copyUrl = async () => {
if (!inviteUrl) return

3
packages/nc-gui-v2/package-lock.json generated

@ -78,6 +78,7 @@
},
"../nocodb-sdk": {
"version": "0.92.4",
"hasInstallScript": true,
"license": "MIT",
"dependencies": {
"axios": "^0.21.1",
@ -104,6 +105,7 @@
"open-cli": "^6.0.1",
"prettier": "^2.1.1",
"standard-version": "^9.0.0",
"swagger-typescript-api": "^10.0.1",
"ts-node": "^9.0.0",
"typedoc": "^0.22.17",
"typescript": "^4.0.2"
@ -22961,6 +22963,7 @@
"open-cli": "^6.0.1",
"prettier": "^2.1.1",
"standard-version": "^9.0.0",
"swagger-typescript-api": "^10.0.1",
"ts-node": "^9.0.0",
"typedoc": "^0.22.17",
"typescript": "^4.0.2"

2
packages/nocodb/src/lib/meta/api/projectUserApis.ts

@ -285,7 +285,7 @@ async function sendInviteEmail(
html: ejs.render(template, {
signupLink: `${req.ncSiteUrl}${
Noco.getConfig()?.dashboardPath
}#/user/authentication/signup/${token}`,
}#/signup/${token}`,
projectName: req.body?.projectName,
roles: (req.body?.roles || '')
.split(',')

2
packages/nocodb/src/lib/v1-legacy/rest/RestAuthCtrl.ts

@ -1497,7 +1497,7 @@ export default class RestAuthCtrl {
to: email,
subject: 'Verify email',
html: ejs.render(template, {
signupLink: `${req.ncSiteUrl}${this.config?.dashboardPath}#/user/authentication/signup/${token}`,
signupLink: `${req.ncSiteUrl}${this.config?.dashboardPath}#/signup/${token}`,
projectName: req.body?.projectName,
roles: (req.body?.roles || '')
.split(',')

Loading…
Cancel
Save