I’m trying to implement a change password function for logged in users. I thought I had the logic right. I don’t receive any errors, however the password doesn’t update to the new one entered by the user.
I have a server connect form that has three password fields, 1) current password 2) new password and 3) new password confirm. The form connects to the server action.
SOLVED!
The issue was in the last part in the update query. I mistakenly filtered the update password query in the server action using the wrong user field under ‘Conditions’ - so it was never going to update the DB record :slight_smile.
I learnt that I don’t need ‘Security Provider’ and I can just add 'Security Identity instead. ‘Security Restrict’ I leave where applicable.
Hopefully this helps other who are looking for users to be able to change their passwords whilst logged in. Wappler is awesome!