User change password

Hi all,

I’ve managed to successfully create a reset password form for users who forgot it, using custom authentication pages. But now I want to create a form so that logged in users can change their current password.

I’ve created a form that has 3 fields, one for current password, one for new password and the other confirm new password.

However, since im new in bricks and also coding, can someone help me to find a way to create this?