Browse Source

fix: password reset page

pull/9772/head
Pranav C 3 weeks ago
parent
commit
ea821edb13
  1. 2
      packages/nocodb/src/modules/auth/auth.controller.ts
  2. 2
      packages/nocodb/src/modules/auth/ui/auth/emailVerify.ts
  3. 2
      packages/nocodb/src/modules/auth/ui/auth/resetPassword.ts

2
packages/nocodb/src/modules/auth/auth.controller.ts

@ -257,7 +257,7 @@ export class AuthController {
(await import('~/modules/auth/ui/auth/resetPassword')).default,
{
ncPublicUrl: process.env.NC_PUBLIC_URL || '',
token: JSON.stringify(tokenId),
token: tokenId,
baseUrl: `/`,
},
),

2
packages/nocodb/src/modules/auth/ui/auth/emailVerify.ts

@ -42,7 +42,7 @@ export default `<!DOCTYPE html>
valid: null,
errMsg: null,
validForm: false,
token: <%= token %>,
token: '<%= token %>',
greeting: 'Password Reset',
formdata: {
password: '',

2
packages/nocodb/src/modules/auth/ui/auth/resetPassword.ts

@ -68,7 +68,7 @@ export default `<!DOCTYPE html>
data: {
valid: null,
validForm: false,
token: <%= token %>,
token: '<%= token %>',
greeting: 'Password Reset',
formdata: {
password: '',

Loading…
Cancel
Save