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, (await import('~/modules/auth/ui/auth/resetPassword')).default,
{ {
ncPublicUrl: process.env.NC_PUBLIC_URL || '', ncPublicUrl: process.env.NC_PUBLIC_URL || '',
token: JSON.stringify(tokenId), token: tokenId,
baseUrl: `/`, baseUrl: `/`,
}, },
), ),

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

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

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

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

Loading…
Cancel
Save