Browse Source

Merge pull request #2568 from nocodb/fix/2563-password-reset

fix: drop token_version check for password reset
pull/2588/head
աɨռɢӄաօռɢ 3 years ago committed by GitHub
parent
commit
0fc4bd7cd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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