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 1774 #1775

Merged
merged 2 commits into from
Mar 17, 2024
Merged

fix issue 1774 #1775

merged 2 commits into from
Mar 17, 2024

Conversation

zg009
Copy link
Contributor

@zg009 zg009 commented Mar 16, 2024

changed account manager error checking, changed loadUser function to properly render html, updated unit test

…nction to properly render html, updated unit test
@zg009 zg009 requested a review from bourgeoa March 16, 2024 23:49
Copy link
Member

@bourgeoa bourgeoa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM you can merge

@bourgeoa bourgeoa linked an issue Mar 17, 2024 that may be closed by this pull request
@zg009 zg009 merged commit bc35517 into main Mar 17, 2024
2 checks passed
@edwardsph
Copy link

I think the message should say the email is sent 'to' the associated account, not from as that doesn't make sense.

@bourgeoa
Copy link
Member

Thanks. Done

@@ -123,7 +123,10 @@ class PasswordResetEmailRequest extends AuthRequest {
return this.accountManager.accountExists(username)
.then(exists => {
if (!exists) {
throw new Error('Account not found for that username')
// For security reason avoid leaking error information
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merged too quickly!

Suggested change
// For security reason avoid leaking error information
// For security reasons, avoid leaking error information

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

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