Current Password always invalid #58447
Unanswered
danielpeci
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone,
I'm currently working on a Symfony / API Platform / React app, and I'm implementing the feature that allows users to change their passwords in the profile settings. I've developed a custom processor for password hashing (code below), and it's working well for both POST and PATCH requests.
In addition to that, I've created a custom controller to verify the user's current password before allowing the change. However, despite trying several different methods, none of them seem to be working as expected (both versions are included below).
Any insights or suggestions would be greatly appreciated!
User.php
ChangePasswordController: v1
This version always returns: This value should be the user's current password
ChangePasswordController: v2
Always returns Old password is incorrect
Processor (API Platform relevant)
Beta Was this translation helpful? Give feedback.
All reactions