mirror of
https://github.com/flarum/framework.git
synced 2025-02-01 11:48:30 +08:00
Restore stricter email validation
In v5.8, Laravel expanded email validation logic to closer match the RFC. This, however, allows emails that aren't conventional (for example, emails lacking a TLD). This commit changes Flarum's UserValidator to use the `email:filter` validator, which uses PHP's filter_var, and is the pre-5.8 behavior. See https://laravel.com/docs/5.8/validation#rule-email
This commit is contained in:
parent
12498b7620
commit
962b49567c
|
@ -51,7 +51,7 @@ class UserValidator extends AbstractValidator
|
|||
],
|
||||
'email' => [
|
||||
'required',
|
||||
'email',
|
||||
'email:filter',
|
||||
'unique:users,email'.$idSuffix
|
||||
],
|
||||
'password' => [
|
||||
|
|
Loading…
Reference in New Issue
Block a user