Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issue 1770: #1773

Closed
wants to merge 6 commits into from
Closed

fix issue 1770: #1773

wants to merge 6 commits into from

Conversation

zg009
Copy link
Contributor

@zg009 zg009 commented Mar 15, 2024

changed error handling of attempting to send password reset on nonexistent user: view issue 1770

@bourgeoa , I wasn't sure what you meant by changing that one line, as I could not find a fix without changing how the accountManager worked downstream, so I simply added an error code check to if request.validate() fails it still passes through the catch.

If you have a better idea let me know and I will change + test

@zg009 zg009 requested a review from bourgeoa March 15, 2024 17:49
lib/requests/password-reset-email-request.js Outdated Show resolved Hide resolved
lib/requests/password-reset-email-request.js Outdated Show resolved Hide resolved
@bourgeoa
Copy link
Member

bourgeoa commented Mar 15, 2024

@zg009
I'm sorry I have not been very clear to the changes I was thinking of.

Do you work locally ? if yes you should npm run test before push. If you need any help please ask.

Usually after a PR it is good practice to come back and look a the tests. Thereafter clear any issue due to your changes.

@zg009
Copy link
Contributor Author

zg009 commented Mar 15, 2024

I saw the test fail, I thought I had passed the linting check but had forgotten to save, so I committed without fixing the formatting issues.

Edit: And it is okay, I didn't know you could return a non-Promise value from a Promise after all. Should I also change the comment above resetLinkMessage() since it no longer throws an Error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants