Browse Source

Merge pull request #4571 from nocodb/feat/reset-password-error-msg

feat(nocodb): include error message for resetting password
pull/4577/head
աɨռɢӄաօռɢ 2 years ago committed by GitHub
parent
commit
a3b7a6ab74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      packages/nocodb/src/lib/meta/api/userApi/ui/auth/resetPassword.ts
  2. 6
      packages/nocodb/src/lib/v1-legacy/rest/ui/auth/resetPassword.ts

6
packages/nocodb/src/lib/meta/api/userApi/ui/auth/resetPassword.ts

@ -86,7 +86,11 @@ export default `<!DOCTYPE html>
}); });
this.success = true; this.success = true;
} catch (e) { } catch (e) {
alert('Some error occured') if (e.response && e.response.data && e.response.data.msg) {
alert('Failed to reset password: ' + e.response.data.msg)
} else {
alert('Some error occurred')
}
} }
} }
} }

6
packages/nocodb/src/lib/v1-legacy/rest/ui/auth/resetPassword.ts

@ -86,7 +86,11 @@ export default `<!DOCTYPE html>
}); });
this.success = true; this.success = true;
} catch (e) { } catch (e) {
alert('Some error occured') if (e.response && e.response.data && e.response.data.msg) {
alert('Failed to reset password: ' + e.response.data.msg)
} else {
alert('Some error occurred')
}
} }
} }
} }

Loading…
Cancel
Save