Skip to content

IBX-3201: Added invitation email validation - #46

Merged
ViniTou merged 3 commits into
mainfrom
ibx-3201-added-email-validation
Aug 2, 2022
Merged

IBX-3201: Added invitation email validation#46
ViniTou merged 3 commits into
mainfrom
ibx-3201-added-email-validation

Conversation

@ViniTou

@ViniTou ViniTou commented Jul 27, 2022

Copy link
Copy Markdown
Contributor

@ViniTou ViniTou changed the title Ibx 3201 added email validation IBX-3201: Added invitation email validation Jul 27, 2022
@ViniTou
ViniTou force-pushed the ibx-3201-added-email-validation branch 2 times, most recently from d45f482 to 034be57 Compare July 27, 2022 07:30
Comment thread src/lib/Invitation/Persistence/DoctrineGateway.php
Comment thread src/lib/Validator/Constraints/EmailInvitationValidator.php
Comment thread src/lib/Validator/Constraints/EmailInvitation.php Outdated
Comment thread src/lib/Invitation/Persistence/Handler.php Outdated
@ViniTou
ViniTou force-pushed the ibx-3201-added-email-validation branch from 034be57 to 516f9e9 Compare July 27, 2022 07:52
@mikadamczyk
mikadamczyk requested a review from Steveb-p July 27, 2022 07:54
@ViniTou
ViniTou requested a review from a team July 27, 2022 08:33
public static function getTranslationMessages()
{
return [
Message::create('ibexa.user.invitation.user_with_email_exists', 'validators')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
Message::create('ibexa.user.invitation.user_with_email_exists', 'validators')
Message::create($message, 'validators')

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That's not gonna work, I would have to create property & private const, and that's just seems to much.

* Checks if the passed value is valid.
*
* @param string $email The value that should be validated
* @param \Symfony\Component\Validator\Constraint $constraint The constraint for the validation

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
* @param \Symfony\Component\Validator\Constraint $constraint The constraint for the validation

Doesn't seem to bring much value.

}

/**
* Checks if the passed value is valid.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
* Checks if the passed value is valid.

It seems pretty self-explanatory.

@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@ViniTou
ViniTou merged commit ebe1829 into main Aug 2, 2022
@ViniTou
ViniTou deleted the ibx-3201-added-email-validation branch August 2, 2022 10:10
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.

6 participants