witty-fountain-21673
08/19/2024, 8:39 PMpassword
method, the only trait required is the new password. I would have expected the current password to be required so a check is done before updating. Am I missing something? If not, what’s the recommended way to achieve checking the current password before updating to the new one in an SPA ?
My initial thought was the ugly solution of fetching the current password_hash, and in the SPA do something like bcrypt( curr_pass) === password_hash
before updating the new password via the settings flow. Not a fan of this but couldn’t find an endpoint to fetch the hash anyways. Any help will be appreciated 🙂