Browse Source

fix: drop token_version check for password reset

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/2568/head
mertmit 2 years ago
parent
commit
1690cbc775
  1. 3
      packages/nocodb/src/lib/meta/api/userApi/userApis.ts

3
packages/nocodb/src/lib/meta/api/userApi/userApis.ts

@ -366,9 +366,6 @@ async function tokenValidate(req, res): Promise<any> {
if (user.reset_password_expires < new Date()) {
NcError.badRequest('Password reset url expired');
}
if (!user.token_version) {
NcError.badRequest('Token Expired. Please login again.');
}
res.json(true);
}

Loading…
Cancel
Save