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

Pivotal ID # 185110100: Case Insensitive Submission Ownership #722

Merged

Conversation

jhoanmanuelms
Copy link
Contributor

  • Ensure user email is always lowercase on registration
  • Remove unnecessary data classes

- Ensure user email is always lowercase on registration
- Remove unnecessary data classes
@jhoanmanuelms jhoanmanuelms self-assigned this Jun 12, 2023
@jhoanmanuelms jhoanmanuelms requested a review from Juan-EBI June 12, 2023 17:26
Copy link
Contributor

@Juan-EBI Juan-EBI left a comment

Choose a reason for hiding this comment

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

LGTM


class EmailDeserializer : StdDeserializer<String>(String::class.java) {
override fun deserialize(p: JsonParser?, ctxt: DeserializationContext?): String {
return _parseString(p, ctxt).lowercase()
Copy link
Contributor

Choose a reason for hiding this comment

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

not sure about adding case insensitve check in web layer? should we add this servie layer directly? (so if we change how we call this, rule still in place)

Copy link
Contributor

@Juan-EBI Juan-EBI left a comment

Choose a reason for hiding this comment

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

please consider comment before merge

- Remove the validation at web layer
- Change the email to lowercase at registration
@jhoanmanuelms jhoanmanuelms merged commit 7d9afb2 into master Jul 5, 2023
@jhoanmanuelms jhoanmanuelms deleted the bugfix/pivotal-#185110100-user-case-insensitive branch July 5, 2023 11:22
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