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:
committed by
GitHub
parent
16f531e646
commit
03be0afb44
@@ -12,6 +12,7 @@ class TrimStrings extends Middleware
|
|||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $except = [
|
protected $except = [
|
||||||
|
'current_password',
|
||||||
'password',
|
'password',
|
||||||
'password_confirmation',
|
'password_confirmation',
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user