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

New user registration - Not a valid email address #302

Open
derhamproductions opened this issue Feb 9, 2024 · 0 comments
Open

New user registration - Not a valid email address #302

derhamproductions opened this issue Feb 9, 2024 · 0 comments

Comments

@derhamproductions
Copy link

When registering a new user with an email that passes the HTML5 email field check but doesn't pass the grav email filter check a 500 error is shown instead of passing back to the user to check their input.

Specific case if the input is "test@test"
"test@test." correctly recognised as invalid

user\plugins\login\classes\Login.php
line 400

case 'email':
                $value = \is_string($value) ? trim($value) : '';
                if ($value === '' || !filter_var($value, FILTER_VALIDATE_EMAIL)) {
                    throw new \RuntimeException('Not a valid email address');
                }
 
                break;

Clean Install - only option changed is user registration to enabled
Grav v1.7.44
Admin v1.10.44
Form v7.3.0
Login v3.7.7

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

No branches or pull requests

1 participant