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

trait for registration controller #1

Closed

Conversation

jrushlow
Copy link
Collaborator

No description provided.

*/
class VerifyEmailControllerTrait
{
private function isConfirmationValid(Request $request): void
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd say this should return a bool


if ($user->isVerified()) {
throw new \Exception('Your email address has already been verified.');
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we care about this case. The user could choose to check this already if they wanted. But if the user is already verified... and they want to verify again, go for it! Technically speaking, this has nothing to do with the signature being valid or not.

@jrushlow
Copy link
Collaborator Author

no longer relevant

@jrushlow jrushlow closed this May 15, 2020
@jrushlow jrushlow deleted the feature/controller-trait branch May 25, 2020 00:48
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.

None yet

2 participants