Closed scibuff closed 3 years ago
Make sure you pass that key.
Make sure you pass that key.
What if someone makes a PUT
request without it (e.g. with disabled front end validation)
@scibuff good point. Can you send in a PR?
I've sent in a fix for this here: https://github.com/laravel/fortify/pull/194
Description:
The
UpdateUserPassword
action throws an error if the$input
array does not havecurrent_password
indexSteps To Reproduce:
Create and run a new (unit) test for checking that current password is required, e.g.
running the test gives the following error
Changing the line
to
does fix the problem