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

Server: handle emails with multiple addresses #157

Merged
merged 3 commits into from
May 8, 2020

Conversation

promaty
Copy link
Contributor

@promaty promaty commented May 8, 2020

No description provided.

@promaty promaty requested a review from facuspagnuolo May 8, 2020 17:01
@promaty promaty self-assigned this May 8, 2020
@promaty promaty merged commit ada81f1 into development May 8, 2020
@promaty promaty deleted the email_multiple_users branch May 8, 2020 17:06
@@ -21,9 +21,6 @@ class UserEmailVerificationTokenValidator extends BaseValidator {

async _validateTokenFormat({ address, token }) {
const user = await User.query().findOne({address}).withGraphFetched('emailVerificationToken')
if (!user) {
return this.addError({address: `User ${address} not found`})
Copy link
Contributor

Choose a reason for hiding this comment

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

It's not really wrong, but I'm wondering if we should have used if elses instead of returning on every truthy condition?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes maybe if else would be more clear here, created issue #197

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