mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
Don't trim current_password
(#5546)
Inspired by https://github.com/laravel/framework/pull/36415 As JetStream/Fortify uses a `current_password` field when allowing a user to change their password, and as JetStream is one of the starter kits listed on the docs, this PR adds `current_password` in the `$except` option of the `TrimStrings` middleware.
This commit is contained in:
parent
16f531e646
commit
03be0afb44
@ -12,6 +12,7 @@ class TrimStrings extends Middleware
|
||||
* @var array
|
||||
*/
|
||||
protected $except = [
|
||||
'current_password',
|
||||
'password',
|
||||
'password_confirmation',
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user